Skip to content

Commit 8470819

Browse files
committed
Fix Clear Inheritance error
1 parent 8d8041b commit 8470819

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

editor/docks/scene_tree_dock.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,8 +1394,9 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
13941394
Node *node = e->get();
13951395
if (node) {
13961396
node->set_scene_inherited_state(Ref<SceneState>());
1397-
scene_tree->update_tree();
1398-
InspectorDock::get_inspector_singleton()->update_tree();
1397+
String scene_file_path = node->get_scene_file_path();
1398+
EditorNode::get_singleton()->save_scene_to_path(scene_file_path);
1399+
EditorNode::get_singleton()->reload_scene(scene_file_path);
13991400
}
14001401
}
14011402
} break;

0 commit comments

Comments
 (0)