Add StudioMode enum to toggle edit functionality

This commit is contained in:
Danny McGee
2024-01-15 15:00:29 -05:00
parent 3ef34ccd8c
commit 2f549e2d14
3 changed files with 106 additions and 22 deletions
+3 -1
View File
@@ -5,6 +5,8 @@ use bevy::{
};
use space_editor::prelude::space_undo::UndoRedo;
use crate::is_editor;
#[derive(SystemSet, Hash, Debug, PartialEq, Eq, Clone)]
pub struct StudioInputSystem;
@@ -31,7 +33,7 @@ impl Plugin for StudioInputPlugin {
translate_debug_toggle,
translate_dcc_camera_events,
translate_fps_camera_events,
send_undo_event,
send_undo_event.run_if(is_editor),
)
.in_set(StudioInputSystem)
.after(bevy::input::InputSystem)