mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
parent
dd23d0b635
commit
0528ce0a2a
@ -269,7 +269,7 @@ NodePath NodePath::rel_path_to(const NodePath &p_np) const {
|
|||||||
|
|
||||||
NodePath NodePath::get_as_property_path() const {
|
NodePath NodePath::get_as_property_path() const {
|
||||||
|
|
||||||
if (!data->path.size()) {
|
if (!data || !data->path.size()) {
|
||||||
return *this;
|
return *this;
|
||||||
} else {
|
} else {
|
||||||
Vector<StringName> new_path = data->subpath;
|
Vector<StringName> new_path = data->subpath;
|
||||||
|
Loading…
Reference in New Issue
Block a user