Browse Source

addressing code review comment, revised change to not use private methods in NodeTransform

Nicholas Barlow 6 năm trước cách đây
mục cha
commit
df52208f0b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      serializers/src/glTF/2.0/glTFExporter.ts

+ 1 - 1
serializers/src/glTF/2.0/glTFExporter.ts

@@ -1196,7 +1196,7 @@ export class _Exporter {
                         let sideOrientation = babylonMaterial.sideOrientation;
 
                         // Only reverse the winding if we have a clockwise winding in a positive worldspace
-                        if (sideOrientation === Material.ClockWiseSideOrientation && babylonTransformNode._getWorldMatrixDeterminant() > 0) {
+                        if (sideOrientation === Material.ClockWiseSideOrientation && babylonTransformNode.getWorldMatrix().determinant() > 0) {
                             let byteOffset = indexBufferViewIndex != null ? this._bufferViews[indexBufferViewIndex].byteOffset : null;
                             if (byteOffset == null) { byteOffset = 0; }
                             let babylonIndices: Nullable<IndicesArray> = null;