Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Jul 28, 2023
1 parent df93732 commit 0c6179a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
28 changes: 14 additions & 14 deletions rmf_site_editor/src/interaction/ColorBasedPicker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ pub struct ColorBasedPicker;
impl Plugin for ColorBasedPicker {
fn build(&self, app: &mut bevy::prelude::App) {
app.add_system(resize_notificator::<LINE_PICKING_LAYER>)
.add_system(resize_notificator::<POINT_PICKING_LAYER>)
.add_system_to_stage(
CoreStage::PostUpdate,
buffer_to_selection::<POINT_PICKING_LAYER>,
)
.add_system_to_stage(
CoreStage::PostUpdate,
buffer_to_selection::<LINE_PICKING_LAYER>,
)
.init_resource::<ColorEntityMap>()
.add_system(color_entity_mapping_system::<LINE_PICKING_LAYER>)
.add_system(color_entity_mapping_system::<POINT_PICKING_LAYER>)
.add_plugin(ImageCopyPlugin);
.add_system(resize_notificator::<POINT_PICKING_LAYER>)
.add_system_to_stage(
CoreStage::PostUpdate,
buffer_to_selection::<POINT_PICKING_LAYER>,
)
.add_system_to_stage(
CoreStage::PostUpdate,
buffer_to_selection::<LINE_PICKING_LAYER>,
)
.init_resource::<ColorEntityMap>()
.add_system(color_entity_mapping_system::<LINE_PICKING_LAYER>)
.add_system(color_entity_mapping_system::<POINT_PICKING_LAYER>)
.add_plugin(ImageCopyPlugin);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ use bevy::render::view::RenderLayers;
use bevy::window::WindowResized;
use rmf_site_format::Anchor;

use crate::site::LaneSegments;
use super::{ColorEntityMap, ScreenSpaceSelection};
use crate::interaction::*;
use crate::interaction::camera_controls::MouseLocation;
use crate::interaction::*;
use crate::interaction::{CameraControls, ProjectionMode, POINT_PICKING_LAYER};
use crate::keyboard::DebugMode;
use crate::site::LaneSegments;

#[derive(Component, Clone, Debug, Default)]
pub struct RenderingBufferDetails {
Expand Down
6 changes: 1 addition & 5 deletions rmf_site_editor/src/interaction/anchor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ use crate::{
animate::*,
interaction::IntersectGroundPlaneParams,
interaction::*,

keyboard::DebugMode,
site::{
Anchor, Category, Delete, Dependents, PointAsset, SiteAssets,
Subordinate,
},
site::{Anchor, Category, Delete, Dependents, PointAsset, SiteAssets, Subordinate},
};
use bevy::prelude::*;

Expand Down

0 comments on commit 0c6179a

Please sign in to comment.