mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 04:33:29 +00:00
VisualScript: Fix crash with get_node().
This commit is contained in:
parent
b368ce1719
commit
dfb6602da0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user