diff --git a/src/animation/KeyframeTrack.js b/src/animation/KeyframeTrack.js index 236ef0e9956a6d8ccaeffb0c1f2c5922257ea158..feeefa76916042ea11a88bfa51604f6670bb7968 100644 --- a/src/animation/KeyframeTrack.js +++ b/src/animation/KeyframeTrack.js @@ -207,10 +207,11 @@ THREE.KeyframeTrack.prototype = { var from = firstKeysToRemove; var to = nKeys - lastKeysToRemove - firstKeysToRemove; + var stride = this.getValueSize(); + this.times = THREE.AnimationUtils.arraySlice( times, from, to ); var values = this.values; - var stride = this.getValueSize(); this.values = THREE.AnimationUtils.arraySlice( values, from * stride, to * stride ); }