summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-20 11:35:00 +0100
committerGitHub <noreply@github.com>2022-02-20 11:35:00 +0100
commit89ca0a1325f9652bd3ae913b1a58594d212c3e22 (patch)
treef43c651db69a4b1d4acf1be48a01ec6eaf5c77b1
parent499eec13a3660f6f05a6212be97ea164fd98b519 (diff)
parent4d275c473e9605a6e99722ffad01bf6b2f7231ef (diff)
Merge pull request #58327 from megalobyte/fix-vs-call-crash
-rw-r--r--modules/visual_script/editor/visual_script_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp
index e2432a1282..ff4b6a1f4b 100644
--- a/modules/visual_script/editor/visual_script_editor.cpp
+++ b/modules/visual_script/editor/visual_script_editor.cpp
@@ -3535,7 +3535,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
print_error("Category not handled: " + p_category.quote());
}
- if (Object::cast_to<VisualScriptFunctionCall>(vnode.ptr()) && p_category != "Class") {
+ if (Object::cast_to<VisualScriptFunctionCall>(vnode.ptr()) && p_category != "Class" && p_category != "VisualScriptNode") {
Vector<String> property_path = p_text.split(":");
String class_of_method = property_path[0];
String method_name = property_path[1];