viromedia / virocore

ViroCore cross-platform AR/VR renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animation inside GLB won't loop: it crashes

federico-camonapp opened this issue · comments

commented

Environment

Please provide the following information about your environment:

  1. OS: Mac
  2. Version: 2.17
  3. Device(s): Samsung Galaxy S8

Description

When configuring a GLB to loop its internal animation. after a few loops (3 or 4), the app crashes. Same happens if instead of doing a setLoop(true) we use setListener and chain the animations. (We've tried with CesiumMan)

Reproducible Demo

Object3D object = ...;
Animation animation = object.getAnimation("animation_0");
animation.setLoop(true);
animation.play();