summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2022-08-27 13:01:24 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2022-08-28 20:17:16 +0200
commit2b73bf1ed197ddf3c1ff04dd3bd64556a870bc16 (patch)
treead19db3c89ce91b78c81a483123fb952aed29337 /scene
parent006915b4824a91c0e0fc95ac6aa2f70908a0a027 (diff)
Make local-to-scene resources behavior consistent in child scenes
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/packed_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp
index dcccc6898b..71bfb01de3 100644
--- a/scene/resources/packed_scene.cpp
+++ b/scene/resources/packed_scene.cpp
@@ -297,7 +297,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
if (E) {
value = E->value;
} else {
- if (p_edit_state == GEN_EDIT_STATE_MAIN || p_edit_state == GEN_EDIT_STATE_MAIN_INHERITED) {
+ if (p_edit_state == GEN_EDIT_STATE_MAIN) {
//for the main scene, use the resource as is
res->configure_for_local_scene(base, resources_local_to_scene);
resources_local_to_scene[res] = res;