private void N_OnOutputRemovedFromNode(Node n, NodeOutput inp) { var uinp = OutputNodes.Find(m => m.Output == inp); if (uinp != null) { OutputStack.Children.Remove(uinp); OutputNodes.Remove(uinp); } ResizeHeight(); }
private void N_OnOutputRemovedFromNode(Node n, NodeOutput inp, NodeOutput previous = null) { var uinp = OutputNodes.Find(m => m.Output == inp); if (uinp != null) { //whoops forgot to dispose //on the uinodepoint to remove previous connects //etc uinp.Dispose(); OutputStack.Children.Remove(uinp); OutputNodes.Remove(uinp); } }