Ericky14 Posted January 9, 2018 Share Posted January 9, 2018 I have a lot of instances in my scene, and some of those instances have other instances as parents (not sure if this matters). So, whenever I dispose of one of those instanced meshes, my scene crashes. Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 9, 2018 Author Share Posted January 9, 2018 A workaround for this issue is calling `freezeWorldMatrix` on the mesh right before calling `dispose`. Edit: The code does not crash with this workaround, but the meshes will still be visible on the screen. Edit 2: Github issue: https://github.com/BabylonJS/Babylon.js/issues/3516 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 9, 2018 Share Posted January 9, 2018 would you mind to repro the issue in the playground? I'll make sure to fix it right away! Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 9, 2018 Author Share Posted January 9, 2018 https://playground.babylonjs.com/#I04RBE Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 10, 2018 Share Posted January 10, 2018 Should be fixed now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.