Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo #81

Merged
merged 15 commits into from
Nov 29, 2023
6 changes: 5 additions & 1 deletion src/editor/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use bevy::prelude::*;
use crate::{
prefab::save::{SaveConfig, SaveState},
prelude::EditorLoader,
EditorSet, EditorState,
EditorSet, EditorState, PrefabMarker,
};

pub struct EditorCore;
Expand All @@ -55,6 +55,10 @@ impl Plugin for EditorCore {
.in_set(EditorSet::Editor),
);
app.add_systems(Update, editor_event_listener);

app.auto_reflected_undo::<Parent>();
app.auto_reflected_undo::<Children>();
app.auto_undo::<PrefabMarker>();
}
}

Expand Down
Loading