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
@@ -40,7 +40,7 @@ void MaterialPickerWindow::RecreateButtons()
|
||||
|
||||
button.OnClick([entity, this](wi::gui::EventArgs args) {
|
||||
|
||||
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