mirror of
https://github.com/godotengine/godot
synced 2024-10-14 11:02:52 +00:00
Merge pull request #32682 from Calinou/fix-nodepath-crash
Fix crash when using `Node.get_as_property_path()`
This commit is contained in:
commit
123a6b8019
|
@ -269,7 +269,7 @@ NodePath NodePath::rel_path_to(const NodePath &p_np) const {
|
|||
|
||||
NodePath NodePath::get_as_property_path() const {
|
||||
|
||||
if (!data->path.size()) {
|
||||
if (!data || !data->path.size()) {
|
||||
return *this;
|
||||
} else {
|
||||
Vector<StringName> new_path = data->subpath;
|
||||
|
|
Loading…
Reference in a new issue