Explorar o código

Fixing race condition on computeWorldMatrix

David Catuhe %!s(int64=11) %!d(string=hai) anos
pai
achega
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);
                 }
             }
         }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
babylon.1.12-beta.js