Tighten editor scene mutation boundary
This commit is contained in:
@@ -111,10 +111,10 @@ void HierarchyPanel::SyncModelFromScene() {
|
||||
}
|
||||
|
||||
const HierarchyModel sceneModel =
|
||||
HierarchyModel::BuildFromScene(
|
||||
m_sceneRuntime != nullptr
|
||||
? m_sceneRuntime->GetActiveScene()
|
||||
: nullptr);
|
||||
m_sceneRuntime != nullptr
|
||||
? HierarchyModel::BuildFromSnapshot(
|
||||
m_sceneRuntime->BuildHierarchySnapshot())
|
||||
: HierarchyModel{};
|
||||
if (!m_model.HasSameTree(sceneModel) || m_treeItems.empty()) {
|
||||
m_model = sceneModel;
|
||||
RebuildItems();
|
||||
|
||||
Reference in New Issue
Block a user