Skip to content

Commit

Permalink
Fix weird offset when dragging state #36
Browse files Browse the repository at this point in the history
  • Loading branch information
imjp94 committed Dec 13, 2021
1 parent a02e3e8 commit b365a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/imjp94.yafsm/scenes/flowchart/FlowChart.gd
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ func select(node):
# Deselect a node
func deselect(node):
_selection.erase(node)
node.selected = false
if is_instance_valid(node):
node.selected = false
_drag_origins.pop_back()
emit_signal("node_deselected", node)

Expand Down

0 comments on commit b365a4e

Please sign in to comment.