Skip to content

Commit 4edea92

Browse files
authored
Merge pull request #613 from agirault/fix-setMatrix
fix(MatrixBuilder): allow using typed array in setMatrix
2 parents 75be771 + d167c9e commit 4edea92

File tree

1 file changed

+1
-1
lines changed
  • Sources/Common/Core/MatrixBuilder

1 file changed

+1
-1
lines changed

Sources/Common/Core/MatrixBuilder/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Transform {
110110
}
111111

112112
setMatrix(mat4x4) {
113-
if (Array.isArray(mat4x4) && mat4x4.length === 16) {
113+
if (!!mat4x4 && mat4x4.length === 16) {
114114
this.matrix[0] = mat4x4[0];
115115
this.matrix[1] = mat4x4[1];
116116
this.matrix[2] = mat4x4[2];

0 commit comments

Comments
 (0)