Skip to content

Commit 753c1a8

Browse files
authored
Object3D: Clean up.
1 parent 3543d2a commit 753c1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Object3D.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class Object3D extends EventDispatcher {
9898
this.matrixWorld = new Matrix4();
9999

100100
this.matrixAutoUpdate = Object3D.DEFAULT_MATRIX_AUTO_UPDATE;
101-
this.matrixWorldNeedsUpdate = false;
102101

103102
this.matrixWorldAutoUpdate = Object3D.DEFAULT_MATRIX_WORLD_AUTO_UPDATE; // checked by the renderer
103+
this.matrixWorldNeedsUpdate = false;
104104

105105
this.layers = new Layers();
106106
this.visible = true;
@@ -967,9 +967,9 @@ class Object3D extends EventDispatcher {
967967
this.matrixWorld.copy( source.matrixWorld );
968968

969969
this.matrixAutoUpdate = source.matrixAutoUpdate;
970-
this.matrixWorldNeedsUpdate = source.matrixWorldNeedsUpdate;
971970

972971
this.matrixWorldAutoUpdate = source.matrixWorldAutoUpdate;
972+
this.matrixWorldNeedsUpdate = source.matrixWorldNeedsUpdate;
973973

974974
this.layers.mask = source.layers.mask;
975975
this.visible = source.visible;

0 commit comments

Comments
 (0)