Bläddra i källkod

Object3D: Fix world matrix update bug in .attach()

Takahiro 4 år sedan
förälder
incheckning
8c446060c7
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/core/Object3D.js

+ 2 - 2
src/core/Object3D.js

@@ -409,10 +409,10 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 		object.applyMatrix4( _m1 );
 
-		object.updateWorldMatrix( false, false );
-
 		this.add( object );
 
+		object.updateWorldMatrix( false, false );
+
 		return this;
 
 	},