This commit is contained in:
Danny McGee
2024-04-10 04:32:40 -04:00
parent 8a1c616fb1
commit 351ca40612
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -497,6 +497,7 @@ fn log_input_actions(
mut er_editor_actions: EventReader<EditorAction>,
) {
#[derive(Clone, Copy, Debug)]
#[allow(dead_code)] // Spurious warning; these fields _are_ being read by the `Debug` impl
enum InputAction {
Camera(CameraAction),
Selection(SelectionAction),
+2 -2
View File
@@ -14,8 +14,8 @@ use crate::{
};
use super::{
material::GizmoMaterial, on_gizmo_element_hover, on_gizmo_element_unhover, GizmoMats,
GizmoMeshes, InitialTransform, TransformGizmo, TransformGizmoBundle, GIZMO_RENDER_LAYER,
on_gizmo_element_hover, on_gizmo_element_unhover, GizmoMats, GizmoMeshes, InitialTransform,
TransformGizmo, TransformGizmoBundle, GIZMO_RENDER_LAYER,
};
#[derive(Component)]
+2 -2
View File
@@ -164,7 +164,7 @@ fn update_selection(
cmd.remove_resource::<Selection>();
}
}
(Lifecycle::Ongoing, input::Selection::Marquee(Rect { min, max })) => {
(Lifecycle::Ongoing, input::Selection::Marquee(Rect { min: _, max: _ })) => {
// TODO
// let center = (*max - *min) / 2.;
// let width = max.x - min.x;
@@ -177,7 +177,7 @@ fn update_selection(
// Color::rgba(1., 1., 0., 0.4),
// );
}
(Lifecycle::Stop, input::Selection::Marquee(Rect { min, max })) => {
(Lifecycle::Stop, input::Selection::Marquee(Rect { min: _, max: _ })) => {
// TODO
}
_ => {}