connectionTarget = e.getPoint();
}
else if (actionType < 0) { // dragging an existing connection of an input away
int index = -actionType - 1;
TextureGraphNode.ConnectionPoint inputPoint = node.getInputConnectionPointByChannelIndex(index);
TextureNodeConnection connection = graph.getConnectionAtInputPoint(inputPoint);
if (connection != null) {
graph.removeConnection(connection);
connectionDragging = true;
connectionSource = connection.source;
connectionOrigin = new Point(connectionSource.getWorldSpaceX(), connectionSource.getWorldSpaceY());