Implement a dialog for unsaved changes (#1241)
* Track unsaved scene changes * Implement a dialog for unsaved changes * Exclude all selection actions from scene change tracking
This commit is contained in:
committed by
GitHub
parent
7318056235
commit
a00fb8efc2
@@ -169,7 +169,7 @@ void HumanoidWindow::Create(EditorComponent* _editor)
|
||||
if (args.iValue < 0)
|
||||
return;
|
||||
|
||||
wi::Archive& archive = editor->AdvanceHistory();
|
||||
wi::Archive& archive = editor->AdvanceHistory(true);
|
||||
archive << EditorComponent::HISTORYOP_SELECTION;
|
||||
// record PREVIOUS selection state...
|
||||
editor->RecordSelection(archive);
|
||||
|
||||
Reference in New Issue
Block a user