summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-01 16:33:04 +0200
committerGitHub <noreply@github.com>2019-07-01 16:33:04 +0200
commit08200cb9f516a84b79d2aaddf720c102c9dd2d5d (patch)
tree22246aaa83a8f41780c67f7148583b399c3beba1 /modules
parentb0eeb1233580420bfcbbdd989e4a1beeb4b5fc7a (diff)
parente0e0d8b22954c78f3e154a1a0fa89b389bfe0164 (diff)
Merge pull request #29333 from hbina/fix_double_click_when_no_edited_func
fixed an issue with double clicking available node in VisualScriptEditor
Diffstat (limited to 'modules')
-rw-r--r--modules/visual_script/visual_script_editor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index 3ac170a935..4579644d49 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -1099,6 +1099,9 @@ void VisualScriptEditor::_expression_text_changed(const String &p_text, int p_id
void VisualScriptEditor::_available_node_doubleclicked() {
+ if (edited_func == String())
+ return;
+
TreeItem *item = nodes->get_selected();
if (!item)
@@ -1107,7 +1110,6 @@ void VisualScriptEditor::_available_node_doubleclicked() {
String which = item->get_metadata(0);
if (which == String())
return;
-
Vector2 ofs = graph->get_scroll_ofs() + graph->get_size() * 0.5;
if (graph->is_using_snap()) {