jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

Allow negative scale #84

Closed asherkin closed 1 year ago

asherkin commented 2 years ago

This was disallowed in c1ffc5d, but there is nothing invalid about a negative scale.

I have a scene using a SpatialBundle with a negative transform scale to flip a bunch of 2D meshes on the x-axis together, and the bounds check here was causing that scale to get reset to 0.0 when inspecting the entity.