Browse Source

Set more readable switch statement without tricky comma

Tristan Valcke 8 years ago
parent
commit
67ebb5057a
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/animation/PropertyMixer.js

+ 8 - 4
src/animation/PropertyMixer.js

@@ -20,14 +20,18 @@ function PropertyMixer( binding, typeName, valueSize ) {
 
 
 	switch ( typeName ) {
 	switch ( typeName ) {
 
 
-		case 'quaternion':			mixFunction = this._slerp;		break;
+		case 'quaternion':
+			mixFunction = this._slerp;
+			break;
 
 
 		case 'string':
 		case 'string':
 		case 'bool':
 		case 'bool':
+			bufferType = Array;
+			mixFunction = this._select;
+			break;
 
 
-			bufferType = Array,		mixFunction = this._select;		break;
-
-		default:					mixFunction = this._lerp;
+		default:
+			mixFunction = this._lerp;
 
 
 	}
 	}