BabylonJS / Extensions

Extensions for Babylon.js
175 stars 154 forks source link

An error occurred in the size of the asynchronous creation of htmlMesh #268

Closed CTOSPACE closed 5 months ago

CTOSPACE commented 5 months ago

https://www.babylonjs-playground.com/#Y2LIXI#57

When HTMLMesh is generate deferred, such as through setTimeout 2000ms, its size will be incorrect. When I debug it, a delayed generated HTMLMesh's requestUpdate is always false, and the 'this.updateBaseScaleFactor' can't be called anytime

@ericwood73

CTOSPACE commented 5 months ago

so, i modified the code as bellow, i am do not sure this way is right, but it's works

图片
ericwood73 commented 5 months ago

Thanks for reporting. This has been fixed by PR #269