aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas2017-10-06 21:24:00 +0200
committerAndreas Haas2017-10-06 21:24:21 +0200
commitdfb6602da065f8789ef0d9212af4636c9e09997c (patch)
tree7307a7761abf0604de894a22234781844af71ae1
parentb368ce1719746c69828688b9bf88396dd10dfe26 (diff)
downloadgodot-dfb6602da065f8789ef0d9212af4636c9e09997c.tar.gz
godot-dfb6602da065f8789ef0d9212af4636c9e09997c.tar.zst
godot-dfb6602da065f8789ef0d9212af4636c9e09997c.zip
-rw-r--r--editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 47ebf49c4..658f67d6a 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);