mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Merge pull request #11887 from Hinsbart/vs_crash_get_node
VisualScript: Fix crash with get_node(). [ci skip]
This commit is contained in:
commit
cb4830ef5e
@ -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