mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 00:17:14 +00:00
Disable gizmo mode actions when the selected nodes don't allow them
This commit is contained in:
@@ -27,7 +27,7 @@ void CClearSelectionCommand::undo()
|
||||
}
|
||||
|
||||
mpEditor->RecalculateSelectionBounds();
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
void CClearSelectionCommand::redo()
|
||||
@@ -38,5 +38,5 @@ void CClearSelectionCommand::redo()
|
||||
|
||||
mpSelection->clear();
|
||||
mpEditor->RecalculateSelectionBounds();
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ void CDeselectNodeCommand::undo()
|
||||
}
|
||||
|
||||
mpEditor->ExpandSelectionBounds(mpNode);
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
void CDeselectNodeCommand::redo()
|
||||
@@ -38,5 +38,5 @@ void CDeselectNodeCommand::redo()
|
||||
}
|
||||
|
||||
mpEditor->RecalculateSelectionBounds();
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ void CSelectNodeCommand::undo()
|
||||
}
|
||||
|
||||
mpEditor->RecalculateSelectionBounds();
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
void CSelectNodeCommand::redo()
|
||||
@@ -38,5 +38,5 @@ void CSelectNodeCommand::redo()
|
||||
}
|
||||
|
||||
mpEditor->ExpandSelectionBounds(mpNode);
|
||||
mpEditor->UpdateSelectionUI();
|
||||
mpEditor->SelectionModified();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user