소스 검색

toggle convertToRightHanded when modifying the parent root node

Kacey Coley 7 년 전
부모
커밋
4709b205ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      serializers/src/glTF/2.0/babylon.glTFExporter.ts

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

@@ -1205,7 +1205,7 @@ module BABYLON.GLTF2 {
             if (rootNodes.length === 1) {
             if (rootNodes.length === 1) {
                 const node = rootNodes[0];
                 const node = rootNodes[0];
                 if (node.scaling.equalsToFloats(1,1, -1)) {
                 if (node.scaling.equalsToFloats(1,1, -1)) {
-                    this._convertToRightHandedSystem = false;
+                    this._convertToRightHandedSystem = !this._convertToRightHandedSystem;
                     negScaleRootNode = node;
                     negScaleRootNode = node;
                 }  
                 }  
             }
             }