浏览代码

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) {
                 const node = rootNodes[0];
                 if (node.scaling.equalsToFloats(1,1, -1)) {
-                    this._convertToRightHandedSystem = false;
+                    this._convertToRightHandedSystem = !this._convertToRightHandedSystem;
                     negScaleRootNode = node;
                 }  
             }