Browse Source

Object3D: Correctly copy `pivot`. (#33163)

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
PoseidonEnergy 1 month ago
parent
commit
7b6450294f
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/core/Object3D.js

+ 1 - 5
src/core/Object3D.js

@@ -1592,11 +1592,7 @@ class Object3D extends EventDispatcher {
 		this.quaternion.copy( source.quaternion );
 		this.scale.copy( source.scale );
 
-		if ( source.pivot !== null ) {
-
-			this.pivot = source.pivot.clone();
-
-		}
+		this.pivot = ( source.pivot !== null ) ? source.pivot.clone() : null;
 
 		this.matrix.copy( source.matrix );
 		this.matrixWorld.copy( source.matrixWorld );

粤ICP备19079148号