Merge pull request #32682 from Calinou/fix-nodepath-crash

Fix crash when using `Node.get_as_property_path()`
This commit is contained in:
Rémi Verschelde 2019-10-09 16:52:52 +02:00 committed by GitHub
commit 123a6b8019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;