Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating light gizmo causes light to move #7603

Closed
Drigax opened this issue Feb 6, 2020 · 1 comment
Closed

Activating light gizmo causes light to move #7603

Drigax opened this issue Feb 6, 2020 · 1 comment
Assignees

Comments

@Drigax
Copy link
Contributor

Drigax commented Feb 6, 2020

Bug repro: https://www.babylonjs-playground.com/#9DXCHP
Expected result: The light gizmo should have no effect on the light direction.
Current result: When scene is returned immediately (no export at all), the light gizmo toggle reverses the light direction (direction = -1 * direction).
Comments:
This bug does not occur in playground #KX53VK#27 (left handed).
This bug does not occur in the sandbox (playground #9DXCHP exported using Inspector tool).
The light is initially oriented front to back (0,0,1).

@Drigax
Copy link
Contributor Author

Drigax commented Feb 6, 2020

as a note, this bug is not related to handedness. this can be reproduced in a left handed coordinate system as well, since the default gizmo is aligned with the world origin. Any transformed light will be reset to point to local origin once activated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants