Browse Source

Merge pull request #64957 from RandomShaper/subscene_edit_state

Rémi Verschelde 3 years ago
parent
commit
82663e7eb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/resources/packed_scene.cpp

+ 1 - 1
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;