Преглед на файлове

Formatting for mr doob approved coding style standards.

Bug-Reaper преди 5 години
родител
ревизия
01bb667dd2
променени са 1 файла, в които са добавени 11 реда и са изтрити 6 реда
  1. 11 6
      src/animation/AnimationMixer.js

+ 11 - 6
src/animation/AnimationMixer.js

@@ -654,12 +654,17 @@ AnimationMixer.prototype = Object.assign( Object.create( EventDispatcher.prototy
 	},
 
 	// Allows you to seek to a specific time in an animation.
-	setTime: function( timeInSeconds ) {
-		this.time=0; // Zero out time attribute for AnimationMixer object;
-    for(var i=0;i<this._actions.length;i++){
-      this._actions[i].time=0; // Zero out time attribute for all associated AnimationAction objects.
-    }
-    return this.update(timeInSeconds); // Update used to set exact time. Returns "this" AnimationMixer object.
+	setTime: function ( timeInSeconds ) {
+
+		this.time = 0; // Zero out time attribute for AnimationMixer object;
+		for ( var i = 0; i < this._actions.length; i ++ ) {
+
+			this._actions[ i ].time = 0; // Zero out time attribute for all associated AnimationAction objects.
+
+		}
+
+		return this.update( timeInSeconds ); // Update used to set exact time. Returns "this" AnimationMixer object.
+
 	},
 
 	// return this mixer's root target object