Browse Source

always call getViewMatrix in camera.computeWorldMatrix

Adam Bowman 7 năm trước cách đây
mục cha
commit
6728aa8ced
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/Cameras/babylon.camera.ts

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

@@ -908,9 +908,7 @@
         }
 
         public computeWorldMatrix(force?: boolean): Matrix {
-            if(force){
-                this.getViewMatrix(force);
-            }
+            this.getViewMatrix(force);
             return this.getWorldMatrix();
         }