فهرست منبع

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;
                 }  
             }