Skip to content

Commit

Permalink
Fix bug with gizmo interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie committed Mar 24, 2023
1 parent 3a9ed71 commit 0a3de3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ fn hover_gizmo(
.expect("Missing gizmo raycast source")
.get_nearest_intersection()
{
if *interaction == Interaction::None {
// Only update the gizmo state if it isn't being clicked (dragged) currently.
if *interaction != Interaction::Clicked {
for child in children
.iter()
.filter(|entity| **entity == topmost_gizmo_entity)
Expand Down

0 comments on commit 0a3de3a

Please sign in to comment.