private void OnSelectionChanged() { // This will get invoked when an Undo happens which allows the gizmo to fix itself. UpdateGizmoTransform(); if (EditorSelection.PrimarySelectedObject != null) { DetailsViewModel.ReflectObject(EditorSelection.PrimarySelectedObject); } }
private void OnSelectionChanged() { if (EditorSelection.PrimarySelectedObject != null) { DetailsViewModel.ReflectObject(EditorSelection.PrimarySelectedObject.Properties); } else if (EditorSelection.SelectedObjects.Count > 1) { DetailsViewModel.ReflectObject(EditorSelection.SelectedObjects[0].Properties); } else { DetailsViewModel.Categories = new System.Collections.Specialized.OrderedDictionary(); } }