From dfb6602da065f8789ef0d9212af4636c9e09997c Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Fri, 6 Oct 2017 21:24:00 +0200 Subject: VisualScript: Fix crash with get_node(). --- editor/property_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 47ebf49c43..658f67d6a4 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -861,7 +861,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: names.push_back(TTR("Assign")); names.push_back(TTR("Clear")); - if (owner->is_class("Node") && (v.get_type() == Variant::NODE_PATH) && Object::cast_to(owner)->has_node(v)) + if (owner && owner->is_class("Node") && (v.get_type() == Variant::NODE_PATH) && Object::cast_to(owner)->has_node(v)) names.push_back(TTR("Select Node")); config_action_buttons(names); -- cgit v1.2.3