on.mouse_release = function(x,y, mouse_button) if Animating then return end if Manifest_navigator.show then reset_manifest_navigator() end if Pan then Pan = nil A() elseif Move then -- resolve collisions unless I'm trying to put it back carefully where I started. if dist(vx(Move.node.x), vy(Move.node.y), vx(Move.oldx), vy(Move.oldy)) > 10 then Move.node.pos.x = Move.node.x+Move.node.hs.x Move.node.pos.y = Move.node.y+Move.node.hs.y move_others(Move.node) end Move = nil A() elseif Cursor_node then Cursor_node.show_cursor = true edit.mouse_release(Cursor_node.editor, x,y, mouse_button) end end