allow generic objects animation filtering

This commit is contained in:
2026-04-08 22:12:36 +03:00
parent abb6204b1f
commit 9d46b9485d
3 changed files with 15 additions and 6 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ class GameEngine extends EventManager{
if (this.opts.gizmo) {
this.orbitControls = new OrbitControls(this.camera, this.renderer.domElement);
this.orbitControls.enableZoom = false;
//this.orbitControls.enableZoom = false;
const gizmo = new ViewportGizmo(this.camera, this.renderer, {
container: '.renderer-gizmo',
//type:'cube'
@@ -501,8 +501,8 @@ class GameEngine extends EventManager{
playAnimation(object, clip, play = true) {
let action = this.mixers[0].clipAction(clip, object);
if (play) action.play();
else action.stop();
action[play ? 'play' : 'stop']();
return action;
}
stop() {