Explorar o código

Fixing _eyeSpace definition

Raanan Weber %!s(int64=10) %!d(string=hai) anos
pai
achega
54dae30d53

+ 2 - 2
Babylon/Tools/babylon.sceneSerializer.js

@@ -115,8 +115,8 @@ var BABYLON;
         }
         else if (camera instanceof BABYLON.AnaglyphFreeCamera || camera instanceof BABYLON.AnaglyphArcRotateCamera) {
             //eye space is a private member and can only be access like this. Without changing the implementation this is the best way to get it.
-            if (camera['_eye_space'] !== undefined) {
-                serializationObject.eye_space = BABYLON.Tools.ToDegrees(camera['_eye_space']);
+            if (camera['_eyeSpace'] !== undefined) {
+                serializationObject.eye_space = BABYLON.Tools.ToDegrees(camera['_eyeSpace']);
             }
         }
         //general properties that not all cameras have. The [] is due to typescript's type safety

+ 2 - 2
Babylon/Tools/babylon.sceneSerializer.ts

@@ -112,8 +112,8 @@
             serializationObject.rotationOffset = followCam.rotationOffset;
         } else if (camera instanceof AnaglyphFreeCamera || camera instanceof AnaglyphArcRotateCamera) {
             //eye space is a private member and can only be access like this. Without changing the implementation this is the best way to get it.
-            if (camera['_eye_space'] !== undefined) {
-                serializationObject.eye_space = Tools.ToDegrees(camera['_eye_space']);
+            if (camera['_eyeSpace'] !== undefined) {
+                serializationObject.eye_space = Tools.ToDegrees(camera['_eyeSpace']);
             }
         }