TheCherno / Hazel

Hazel Engine
Apache License 2.0
11.64k stars 1.5k forks source link

Scaling ImGuizmo when object is at origin causing nan #627

Open varunthomas opened 1 year ago

varunthomas commented 1 year ago
  1. Start a new Scene.
  2. Create a new entity and a sprite renderer component with translation at origin
  3. Scale using ImGuizmo
  4. Scaling is not proper and all transforms can go to nan

Expected behavior

ImGuizmo scaling at origin should work properly.

Screenshots

https://github.com/TheCherno/Hazel/assets/14324501/18eab849-0e5c-4c9e-a5d2-d635615e8d64

Operating system: (please complete the following information)

Additional context

Issue does not happen when the object is not at origin