[LYN-3105] Removed legacy CEditTool class and all sub-classes.

This commit is contained in:
Chris Galvan
2021-04-21 13:57:16 -05:00
parent 2f9102f10a
commit 0efa1e7817
60 changed files with 15 additions and 6678 deletions
@@ -312,19 +312,6 @@ void OutlinerWidget::OnSelectionChanged(const QItemSelection& selected, const QI
AzToolsFramework::EntityIdList newlyDeselected;
ExtractEntityIdsFromSelection(deselected, newlyDeselected);
CEditTool* tool = GetIEditor()->GetEditTool();
IClassDesc* classDescription = tool ? tool->GetClassDesc() : nullptr;
if (classDescription && QString::compare(classDescription->ClassName(), "EditTool.Clone") == 0)
{
// if the user clicks an empty space or selects a different entity in the entity outliner, the clone operation will be accepted.
if ((newlySelected.empty() && !newlyDeselected.empty()) || !newlySelected.empty())
{
tool->Accept(true);
GetIEditor()->GetSelection()->FinishChanges();
}
}
AzToolsFramework::ScopedUndoBatch undo("Select Entity");
// initialize the selection command here to store the current selection before