mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
fix: continue rendering when 3D animation is playing (#7836)
## Summary Previously, the 3D viewer would pause rendering when the mouse left the node to save resources. This caused GLB/FBX animations to freeze when the user moved the mouse away, which was a poor user experience. Now the renderer stays active while an animation is playing, and only pauses when the animation is stopped. fix https://github.com/Comfy-Org/ComfyUI_frontend/issues/7827 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7836-fix-continue-rendering-when-3D-animation-is-playing-2de6d73d365081a6a365f6c0ccfce7b4) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -392,7 +392,8 @@ class Load3d {
|
|||||||
this.STATUS_MOUSE_ON_SCENE ||
|
this.STATUS_MOUSE_ON_SCENE ||
|
||||||
this.STATUS_MOUSE_ON_VIEWER ||
|
this.STATUS_MOUSE_ON_VIEWER ||
|
||||||
this.isRecording() ||
|
this.isRecording() ||
|
||||||
!this.INITIAL_RENDER_DONE
|
!this.INITIAL_RENDER_DONE ||
|
||||||
|
this.animationManager.isAnimationPlaying
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user