Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 92d1647

Browse files
author
Kalpshekhar Gupta
committed
Fixed animations not working bug for .dae models.
1 parent 44dc6ed commit 92d1647

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model-viewer-widget/model-viewer-widget.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ export class ModelViewerWidget implements OnInit, OnDestroy {
269269
});
270270

271271
if (animations && animations.length) {
272-
this.mixer = new THREE.AnimationMixer(modelScene);
273-
this.mixer.clipAction(animations[0]).play();
272+
me.mixer = new THREE.AnimationMixer(modelScene);
273+
me.mixer.clipAction(animations[0]).play();
274274
}
275275
me.scene.add(me.group);
276276

0 commit comments

Comments
 (0)