Merge pull request #58327 from megalobyte/fix-vs-call-crash

This commit is contained in:
Rémi Verschelde 2022-02-20 11:35:00 +01:00 committed by GitHub
commit 89ca0a1325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];