diff options
author | Swarnim Arun <swarnimarun11@gmail.com> | 2019-09-14 00:44:12 +0530 |
---|---|---|
committer | Swarnim Arun <swarnimarun11@gmail.com> | 2019-09-26 01:53:58 +0530 |
commit | 59738e3fa3f01f85782883d025cd96f9b0d44283 (patch) | |
tree | 6f759f73507f0927d168fda370d2536dde78f7c2 /scene/gui | |
parent | edf9055b7f3fb16f9b927d09bc84be31c1076ce7 (diff) |
Visualscript editor graph unification & refactoring
Removes the need to have separate graphs per function for the VisualScript Nodes, and refactoring UI and other improvements such as fuzzy search, right click search boxes and in-graph editable nodes
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tree.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 57663bbe82..2cca1b51c2 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2546,7 +2546,9 @@ void Tree::_gui_input(Ref<InputEvent> p_event) { } else { Rect2 rect = get_selected()->get_meta("__focus_rect"); if (rect.has_point(Point2(b->get_position().x, b->get_position().y))) { - edit_selected(); + if (!edit_selected()) { + emit_signal("item_double_clicked"); + } } else { emit_signal("item_double_clicked"); } |