aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/scene_format_text.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-19 21:26:12 -0300
committerJuan Linietsky2016-07-19 21:26:12 -0300
commit0988970c1fca780f51ba4f2dce6afebdfef7f292 (patch)
tree60d17bcf2424784f14c8a5f603d828c3053636cb /scene/resources/scene_format_text.cpp
parent9de33e18f14f78165754e97ed0f7827b2e50d560 (diff)
downloadgodot-0988970c1fca780f51ba4f2dce6afebdfef7f292.tar.gz
godot-0988970c1fca780f51ba4f2dce6afebdfef7f292.tar.zst
godot-0988970c1fca780f51ba4f2dce6afebdfef7f292.zip
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r--scene/resources/scene_format_text.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index 95645107d..7bb9ca90a 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -404,7 +404,9 @@ Error ResourceInteractiveLoaderText::poll() {
}
if (next_tag.fields.has("parent")) {
- parent=packed_scene->get_state()->add_node_path(next_tag.fields["parent"]);
+ NodePath np = next_tag.fields["parent"];
+ np.prepend_period(); //compatible to how it manages paths internally
+ parent=packed_scene->get_state()->add_node_path(np);
}