Camera-orbit attribute ignored in certain cases #592
Labels
flag: not model-viewer
Problems that are related to our project but are ultimately some other project's issue
flag: partner
Issues or PRs opened by an integrating partner, or affecting one in an important way
type: bug
Something isn't working
Description
I'm trying to implement a reset button that sets the camera-orbit parameter back to a default (eg: "0deg 90deg 1m")
So after the user spins a model around, they can press the button to reset the view. The problem is when you spin the model around, the camera-orbit param does not get updated to reflect the model's new position. I understand that's because we don't want to update the DOM every frame.
But that means that the camera does not move because the camera-orbit parameter has never changed from "0deg 90deg 1m", even though the model did visually rotate.
My workaround right now is to remove the camera-orbit attribute before setting it.
Live Demo
Follow repro instructions here:
https://dapper-blender.glitch.me
Browser Affected
All browsers
OS
All OS
Versions
The text was updated successfully, but these errors were encountered: