diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2017-10-06 21:24:00 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2017-10-06 21:24:21 +0200 |
commit | dfb6602da065f8789ef0d9212af4636c9e09997c (patch) | |
tree | 7307a7761abf0604de894a22234781844af71ae1 | |
parent | b368ce1719746c69828688b9bf88396dd10dfe26 (diff) |
VisualScript: Fix crash with get_node().
-rw-r--r-- | editor/property_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Node>(owner)->has_node(v)) + if (owner && owner->is_class("Node") && (v.get_type() == Variant::NODE_PATH) && Object::cast_to<Node>(owner)->has_node(v)) names.push_back(TTR("Select Node")); config_action_buttons(names); |