Sfoglia il codice sorgente

Fixing race condition on computeWorldMatrix

David Catuhe 11 anni fa
parent
commit
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);
                 }
             }
         }

File diff suppressed because it is too large
+ 1 - 1
babylon.1.12-beta.js