diff --git a/dist/threebox.js b/dist/threebox.js index 092bb4d3..6f6d243a 100755 --- a/dist/threebox.js +++ b/dist/threebox.js @@ -1764,7 +1764,7 @@ AnimationManager.prototype = { obj.playAnimation = function (options) { if (obj.mixer) { - if (options.animation) { + if (options.animation>=0) { setAction(options.animation) } obj.playDefault(options); diff --git a/src/animation/AnimationManager.js b/src/animation/AnimationManager.js index 7f511337..71151ceb 100644 --- a/src/animation/AnimationManager.js +++ b/src/animation/AnimationManager.js @@ -292,7 +292,7 @@ AnimationManager.prototype = { obj.playAnimation = function (options) { if (obj.mixer) { - if (options.animation) { + if (options.animation>=0) { setAction(options.animation) } obj.playDefault(options);