From 59738e3fa3f01f85782883d025cd96f9b0d44283 Mon Sep 17 00:00:00 2001 From: Swarnim Arun Date: Sat, 14 Sep 2019 00:44:12 +0530 Subject: 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 --- scene/gui/tree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene/gui') 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 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"); } -- cgit v1.2.3