ソースを参照

Fixing race condition on computeWorldMatrix

David Catuhe 11 年 前
コミット
8aa97fff1e

+ 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