public void UpdateHierarchyAndSelection(bool hasUnsavedChanges) { m_SelectionMadeExternally = true; UpdateHierarchy(hasUnsavedChanges); if (!m_Selection.isEmpty) { m_ElementHierarchyView.SelectElements(m_Selection.selection); m_ElementHierarchyView.IncrementVersion(VersionChangeType.Styles); } m_SelectionMadeExternally = false; }
public void UpdateHierarchyAndSelection(bool hasUnsavedChanges) { m_SelectionMadeExternally = true; m_ElementHierarchyView.ClearHighlightOverlay(); UpdateHierarchy(hasUnsavedChanges); if (!m_Selection.isEmpty) { m_ElementHierarchyView.SelectElements(m_Selection.selection); m_ElementHierarchyView.IncrementVersion(VersionChangeType.Styles); } m_SelectionMadeExternally = false; m_ElementHierarchyView.ApplyRegisteredSelectionInternallyIfNeeded(); }