public void OnReordered(PropertyPath path, int oldIndex, int newIndex) { if (!ToConnectionInfos.Equals(path)) { return; } var old_node = State.Connections[oldIndex]; State.Connections.RemoveAt(oldIndex); State.Connections.Insert(newIndex, old_node); Editor.WantsRepaint = true; }
public void OnReordered(PropertyPath path, int oldIndex, int newIndex) { if (!AsAny || !ConditionPropertyPath.Equals(path)) { return; } var oldInput = AsAny.Entries[oldIndex]; AsAny.Entries.RemoveAt(oldIndex); AsAny.Entries.Insert(newIndex, oldInput); var oldSocket = Outputs[oldIndex]; Outputs.RemoveAt(oldIndex); Outputs.Insert(newIndex, oldSocket); Editor.WantsRepaint = true; }
public bool IsFromPath(PropertyPath path) { return(ToConnectionInfos.Equals(path) || ToChildren.Equals(path)); }
public bool IsFromPath(PropertyPath path) { return(ParameterPath.Equals(path)); }