Browse Source

Change tricky expression to more formal statement without comma separator

Tristan Valcke 8 years ago
parent
commit
5d84c06eb1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/animation/KeyframeTrackPrototype.js

+ 4 - 1
src/animation/KeyframeTrackPrototype.js

@@ -171,7 +171,10 @@ KeyframeTrackPrototype = {
 		if( from !== 0 || to !== nKeys ) {
 		if( from !== 0 || to !== nKeys ) {
 
 
 			// empty tracks are forbidden, so keep at least one keyframe
 			// empty tracks are forbidden, so keep at least one keyframe
-			if ( from >= to ) to = Math.max( to , 1 ), from = to - 1;
+			if ( from >= to ){
+				to = Math.max( to , 1 );
+				from = to - 1;
+			}
 
 
 			var stride = this.getValueSize();
 			var stride = this.getValueSize();
 			this.times = AnimationUtils.arraySlice( times, from, to );
 			this.times = AnimationUtils.arraySlice( times, from, to );