Make local-to-scene resources behavior consistent in child scenes

This commit is contained in:
Pedro J. Estébanez 2022-08-27 13:01:24 +02:00
parent 006915b482
commit 2b73bf1ed1

View File

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