mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Expand gizmos module
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
mod model;
|
||||
mod view;
|
||||
|
||||
use bevy::prelude::*;
|
||||
|
||||
use super::{InteractionMode, InteractionTransform, Selected, TransformSpace};
|
||||
|
||||
pub(super) struct StudioGizmosPlugin;
|
||||
|
||||
impl Plugin for StudioGizmosPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Update, view::draw);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@ use bevy::prelude::*;
|
||||
use bitflags::bitflags;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
use self::gizmos::StudioGizmosPlugin;
|
||||
|
||||
mod gizmos;
|
||||
|
||||
pub struct InteractionPlugin;
|
||||
@@ -10,7 +12,7 @@ impl Plugin for InteractionPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.insert_resource(SelectionMode::default())
|
||||
.insert_resource(InteractionMode::default())
|
||||
.add_systems(Update, gizmos::draw);
|
||||
.add_plugins(StudioGizmosPlugin);
|
||||
|
||||
app.add_systems(
|
||||
PreUpdate,
|
||||
|
||||
Reference in New Issue
Block a user