Explorar o código

Removed MatrixAutoUpdate From Aniamtion

Removed the lines forcing MatrixAutoApdate and MatrixWorldNeedsUpdate to true from Animations update and reset. Per Issue #5704
Kevin %!s(int64=10) %!d(string=hai) anos
pai
achega
ac94b24b13
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      src/extras/animation/Animation.js

+ 0 - 5
src/extras/animation/Animation.js

@@ -53,8 +53,6 @@ THREE.Animation.prototype.reset = function () {
 
 		var object = this.hierarchy[ h ];
 
-		object.matrixAutoUpdate = true;
-
 		if ( object.animationCache === undefined ) {
 
 			object.animationCache = {
@@ -237,9 +235,6 @@ THREE.Animation.prototype.update = (function(){
 
 				}
 
-				object.matrixAutoUpdate = true;
-				object.matrixWorldNeedsUpdate = true;
-
 				var scale = ( this.currentTime - prevKey.time ) / ( nextKey.time - prevKey.time );
 
 				var prevXYZ = prevKey[ type ];