Quellcode durchsuchen

Update babylon.camera.ts

Vousk-prod vor 8 Jahren
Ursprung
Commit
3952e8758a
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/Cameras/babylon.camera.ts

+ 3 - 3
src/Cameras/babylon.camera.ts

@@ -414,10 +414,10 @@
             return this._computedViewMatrix;
         }
 
-        public freezeProjectionMatrix(array?: number[]): void {
+        public freezeProjectionMatrix(projection?: Matrix): void {
             this._doNotComputeProjectionMatrix = true;
-            if (array) {
-                BABYLON.Matrix.FromArrayToRef(array, 0, this._projectionMatrix);
+            if (projection !== undefined) {
+                this._projectionMatrix = projection;
             }
         };