Browse Source

toggle convertToRightHanded when modifying the parent root node

Kacey Coley 7 years ago
parent
commit
4709b205ca
1 changed files with 1 additions and 1 deletions
  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;
                 }  
             }