bzselect now clean + KVview adapted

This commit is contained in:
STEINNI
2025-10-18 18:30:02 +00:00
parent 12e72f9c7f
commit e3ca6bd6b2
5 changed files with 62 additions and 60 deletions
@@ -61,11 +61,12 @@ export class AgentPreview{
return(this._animation)
}
_animate = () => { // to avoid havind to bind(this) in requestAnimationFrame, because one bound fn per frame = continuous GC load
if(!this.animation) return
_animate = () => { // to avoid having to bind(this) in requestAnimationFrame, because one bound fn per frame = continuous GC load
requestAnimationFrame(this._animate)
this.currentAgentObj.rotation.x += 0.005
this.currentAgentObj.rotation.y += 0.01
if(this.currentAgentObj && this.animation){
this.currentAgentObj.rotation.x += 0.005
this.currentAgentObj.rotation.y += 0.01
}
this.renderer.render(this.scene, this.camera)
}
}