Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 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();
     }
 }