}
} else if (e.getSource() == swapInputsChannelMenuItem) { // --------------------------------------------------------
TextureGraphNode node = graph.selectedNodes.get(0);
if (node != null) {
if (node.getChannel().getNumInputChannels() < 2) return;
ConnectionPoint p0 = node.getInputConnectionPointByChannelIndex(0);
ConnectionPoint p1 = node.getInputConnectionPointByChannelIndex(1);
TextureNodeConnection c0 = graph.getConnectionAtInputPoint(p0);
TextureNodeConnection c1 = graph.getConnectionAtInputPoint(p1);
graph.removeConnection(c0);
graph.removeConnection(c1);
if (c0 != null && c1 != null) {
ConnectionPoint temp = c0.target;
c0.target = c1.target;
c1.target = temp;
graph.addConnection(c0);
graph.addConnection(c1);
} else if (c1 != null) {