From f1587c8a7dcb6e28ee6659b83b02a4c6d3bd4073 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Fri, 18 Jun 2021 10:54:09 -0700 Subject: Fix export var override in PackedScene at runtime Regression fix: update_exports is tool only and should be used only in the editor, otherwise it can cause export variable overrides from instances to be discarded in favor of the parent's value. --- scene/resources/packed_scene.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index ab8a4b7934..9f04ff80e1 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -471,7 +471,9 @@ Error SceneState::_parse_node(Node *p_owner, Node *p_node, int p_parent_idx, Map StringName type = p_node->get_class(); Ref