summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-07-04 08:00:17 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-07-04 08:05:37 +0300
commitde1117f5ad41776f25c32c93c3959df42fa5d638 (patch)
tree74e0f02105d7aa2a749c5d060b14bf7f60b142b3 /scene/gui/graph_edit.h
parentb51418842ae684ea201247c6df32092d784e6db0 (diff)
downloadredot-engine-de1117f5ad41776f25c32c93c3959df42fa5d638.tar.gz
Prevents incorrect connection attempt on port clicking in GraphEdit
Prevents incorrect connection attempt on port clicking in GraphEdit
Diffstat (limited to 'scene/gui/graph_edit.h')
-rw-r--r--scene/gui/graph_edit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h
index a627a8eec8..454047f228 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -93,6 +93,8 @@ private:
String connecting_target_to;
int connecting_target_index;
bool just_disconnected;
+ bool connecting_valid;
+ Vector2 click_pos;
bool dragging;
bool just_selected;