Browse Source

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

Takahiro 4 years ago
parent
commit
8c446060c7
1 changed files with 2 additions and 2 deletions
  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;
 
 	},