diff options
author | Rindbee <idleman@yeah.net> | 2022-09-23 15:58:32 +0800 |
---|---|---|
committer | Rindbee <idleman@yeah.net> | 2022-09-23 18:34:07 +0800 |
commit | 6973abd458ff8f13837b1e44857107e34dcd34c7 (patch) | |
tree | 972bf1c5bce932df7248bd203f71922b11d75439 | |
parent | 006e345695a0448acefd63dcb726a07b63cb1d0d (diff) |
Fix sub-scene root nodes not getting the correct inheritance chain when exporting
-rw-r--r-- | editor/export/editor_export_platform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index bcc85570ed..13ab5cebf6 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -710,7 +710,7 @@ String EditorExportPlatform::_export_customize(const String &p_path, LocalVector if (type == "PackedScene") { // Its a scene. Ref<PackedScene> ps = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE); ERR_FAIL_COND_V(ps.is_null(), p_path); - Node *node = ps->instantiate(); + Node *node = ps->instantiate(PackedScene::GEN_EDIT_STATE_INSTANCE); // Make sure the child scene root gets the correct inheritance chain. ERR_FAIL_COND_V(node == nullptr, p_path); if (customize_scenes_plugins.size()) { for (uint32_t i = 0; i < customize_scenes_plugins.size(); i++) { |