Skip to content

Commit 06a73a0

Browse files
committed
GLTFExporter: Clean up.
1 parent b47af3a commit 06a73a0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/js/exporters/GLTFExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ THREE.GLTFExporter.prototype = {
17771777

17781778
}
17791779

1780-
if ( ! equalArray( object.matrix.elements, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ] ) ) {
1780+
if ( ! equalArray( object.matrix.elements, new THREE.Matrix4().toArray() ) ) {
17811781

17821782
gltfNode.matrix = object.matrix.elements;
17831783

examples/jsm/exporters/GLTFExporter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
RGBAFormat,
1818
RepeatWrapping,
1919
Scene,
20-
Vector3
20+
Vector3,
21+
Matrix4
2122
} from "../../../build/three.module.js";
2223

2324
//------------------------------------------------------------------------------
@@ -1797,7 +1798,7 @@ GLTFExporter.prototype = {
17971798

17981799
}
17991800

1800-
if ( ! equalArray( object.matrix.elements, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ] ) ) {
1801+
if ( ! equalArray( object.matrix.elements, new Matrix4().toArray() ) ) {
18011802

18021803
gltfNode.matrix = object.matrix.elements;
18031804

0 commit comments

Comments
 (0)