浏览代码

undo minor change

Julien Barrois 6 年之前
父节点
当前提交
70f7d41726
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Math/babylon.math.ts

+ 1 - 1
src/Math/babylon.math.ts

@@ -5667,7 +5667,7 @@ module BABYLON {
          */
          */
         public static OrthoOffCenterRHToRef(left: number, right: number, bottom: number, top: number, znear: number, zfar: number, result: Matrix): void {
         public static OrthoOffCenterRHToRef(left: number, right: number, bottom: number, top: number, znear: number, zfar: number, result: Matrix): void {
             Matrix.OrthoOffCenterLHToRef(left, right, bottom, top, znear, zfar, result);
             Matrix.OrthoOffCenterLHToRef(left, right, bottom, top, znear, zfar, result);
-            result.multiplyAtIndex(10, -1);
+            result._m[10] *= -1; // No need to call _markAsUpdated as previous function already called it and let _isIdentityDirty to true
         }
         }
 
 
         /**
         /**