diff --git a/lib/geom/Matrix3D.ts b/lib/geom/Matrix3D.ts index 42ef96bd..516c040f 100644 --- a/lib/geom/Matrix3D.ts +++ b/lib/geom/Matrix3D.ts @@ -493,18 +493,18 @@ export class Matrix3D targetData[15] = sourceData[offset + 15]; if (transpose) { - targetData[offset + 1] = sourceData[4]; - targetData[offset + 2] = sourceData[8]; - targetData[offset + 3] = sourceData[12]; - targetData[offset + 4] = sourceData[1]; - targetData[offset + 6] = sourceData[9]; - targetData[offset + 7] = sourceData[13]; - targetData[offset + 8] = sourceData[2]; - targetData[offset + 9] = sourceData[6]; - targetData[offset + 11] = sourceData[14]; - targetData[offset + 12] = sourceData[3]; - targetData[offset + 13] = sourceData[7]; - targetData[offset + 14] = sourceData[11]; + targetData[1] = sourceData[offset + 4]; + targetData[2] = sourceData[offset + 8]; + targetData[3] = sourceData[offset + 12]; + targetData[4] = sourceData[offset + 1]; + targetData[6] = sourceData[offset + 9]; + targetData[7] = sourceData[offset + 13]; + targetData[8] = sourceData[offset + 2]; + targetData[9] = sourceData[offset + 6]; + targetData[11] = sourceData[offset + 14]; + targetData[12] = sourceData[offset + 3]; + targetData[13] = sourceData[offset + 7]; + targetData[14] = sourceData[offset + 11]; } else { targetData[1] = sourceData[offset + 1]; targetData[2] = sourceData[offset + 2];