Browse Source

Fixing animations loop

David Catuhe 11 years ago
parent
commit
ac0113f504

+ 1 - 0
Babylon/Animations/babylon.animation.js

@@ -140,6 +140,7 @@ var BABYLON = BABYLON || {};
         if (ratio > range && !loop) { // If we are out of range and not looping get back to caller
             offsetValue = 0;
             returnValue = false;
+            highLimitValue = this._keys[this._keys.length - 1].value;
         } else {
             // Get max value if required
             var offsetValue = 0;

+ 1 - 1
Babylon/Collisions/babylon.pickingInfo.js

@@ -34,4 +34,4 @@ var BABYLON = BABYLON || {};
 
         return new BABYLON.Vector3(normal0.x + normal1.x + normal2.x, normal0.y + normal1.y + normal2.y, normal0.z + normal1.z + normal2.z);
     };
-})();
+})();

File diff suppressed because it is too large
+ 2 - 2
babylon.1.11.js