diff options
| author | Crazy-P | 2018-04-21 22:35:23 +0800 |
|---|---|---|
| committer | Crazy-P | 2018-04-21 22:35:23 +0800 |
| commit | e6deba8d196a206ff350bc4d9fff783f78395d33 (patch) | |
| tree | 883389f54ba956f929dc1b9d7b4f6d68c0f8ccbb /core/node_path.cpp | |
| parent | 7d6f210ccb5de9ef414f94ad42f9f3dea14c0493 (diff) | |
| download | godot-e6deba8d196a206ff350bc4d9fff783f78395d33.tar.gz godot-e6deba8d196a206ff350bc4d9fff783f78395d33.tar.zst godot-e6deba8d196a206ff350bc4d9fff783f78395d33.zip | |
Diffstat (limited to 'core/node_path.cpp')
| -rw-r--r-- | core/node_path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/node_path.cpp b/core/node_path.cpp index cd7ad7753..64983fc09 100644 --- a/core/node_path.cpp +++ b/core/node_path.cpp @@ -264,8 +264,9 @@ NodePath NodePath::get_as_property_path() const { Vector<StringName> new_path = data->subpath; String initial_subname = data->path[0]; + for (size_t i = 1; i < data->path.size(); i++) { - initial_subname += i == 0 ? data->path[i].operator String() : "/" + data->path[i]; + initial_subname += "/" + data->path[i]; } new_path.insert(0, initial_subname); |
