Merge pull request #94020 from Hilderin/fix-reimport-model-does-not-update-scene

Fix re-import glb model doesn't change the old glb model
This commit is contained in:
Rémi Verschelde 2024-07-08 19:13:34 +02:00
commit 40d9f3a158
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -5978,9 +5978,6 @@ void EditorNode::reload_instances_with_path_in_edited_scenes(const String &p_ins
is_editable = owner->is_editable_instance(original_node); is_editable = owner->is_editable_instance(original_node);
} }
// For clear instance state for path recaching.
instantiated_node->set_scene_instance_state(Ref<SceneState>());
bool original_node_is_displayed_folded = original_node->is_displayed_folded(); bool original_node_is_displayed_folded = original_node->is_displayed_folded();
bool original_node_scene_instance_load_placeholder = original_node->get_scene_instance_load_placeholder(); bool original_node_scene_instance_load_placeholder = original_node->get_scene_instance_load_placeholder();