Преглед изворни кода

Merge pull request #359 from raananw/master

Init BoundingInfo after resetting.
David Catuhe пре 10 година
родитељ
комит
4e22b745f8
1 измењених фајлова са 3 додато и 1 уклоњено
  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._boundingInfo = new BABYLON.BoundingInfo(extend.minimum, extend.maximum);
 
 
                     mesh._createGlobalSubMesh();
                     mesh._createGlobalSubMesh();
+                    //bounding info was just created again, world matrix should be applied again.
+                    mesh._updateBoundingInfo();
                 }
                 }
             }
             }
 
 
@@ -686,4 +688,4 @@
             }
             }
         }
         }
     }
     }
-} 
+}