Ver código fonte

Merge pull request #359 from raananw/master

Init BoundingInfo after resetting.
David Catuhe 10 anos atrás
pai
commit
4e22b745f8
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      Babylon/Mesh/babylon.geometry.ts

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

@@ -293,6 +293,8 @@
                     mesh._boundingInfo = new BABYLON.BoundingInfo(extend.minimum, extend.maximum);
 
                     mesh._createGlobalSubMesh();
+                    //bounding info was just created again, world matrix should be applied again.
+                    mesh._updateBoundingInfo();
                 }
             }
 
@@ -686,4 +688,4 @@
             }
         }
     }
-} 
+}