CameraControls break on-demand rendering (by invalidating every frame) #471
Labels
bug
Something isn't working
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I am setting the
render-mode
on myTresCanvas
toon-demand
. I am using theCameraControls
for controlling orbiting. I expect the@render
emitter to fire only briefly when mounting the scene. But instead, it fires on every frame.Commenting out the rest of the scene does not change the behavior, when commenting out
<CameraControls />
, on-demand returns to working as expected.FYI: It does not happen with
<OrbitControls />
component.Reproduction
https://stackblitz.com/edit/tresjs-minimal-reproduction-gj1p2u?file=src%2FApp.vue
Steps to reproduce
@render
emitter is firing theconsole.log
<CameraControls v-bind="controlsState" make-default />
and check the console to verify that logging stops after a few render loopsSystem Info
No response
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: