浏览代码

Fixing race condition on computeWorldMatrix

David Catuhe 11 年之前
父节点
当前提交
8aa97fff1e
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      Babylon/Mesh/babylon.geometry.js
  2. 1 0
      Babylon/Mesh/babylon.geometry.ts
  3. 1 1
      babylon.1.12-beta.js

+ 1 - 0
Babylon/Mesh/babylon.geometry.js

@@ -64,6 +64,7 @@ var BABYLON;
                     mesh._resetPointsArrayCache();
                     mesh._boundingInfo = new BABYLON.BoundingInfo(extend.minimum, extend.maximum);
                     mesh._createGlobalSubMesh();
+                    mesh.computeWorldMatrix(true);
                 }
             }
         };

+ 1 - 0
Babylon/Mesh/babylon.geometry.ts

@@ -72,6 +72,7 @@
                     mesh._resetPointsArrayCache();
                     mesh._boundingInfo = new BABYLON.BoundingInfo(extend.minimum, extend.maximum);
                     mesh._createGlobalSubMesh();
+                    mesh.computeWorldMatrix(true);
                 }
             }
         }

文件差异内容过多而无法显示
+ 1 - 1
babylon.1.12-beta.js