Blax Posted October 8, 2015 Share Posted October 8, 2015 Hi! Please help me (yes, again )! http://www.babylonjs-playground.com/#1A8B4B1. have StandardMaterial, binded on mesh;2. delete this material: material.dispose()3. scene.materials not contains this material more, its OK,BUT ....4. If we get "material" property from mesh we get link on deleted material. How it works? Example:First we deleted anything materials (we not know how meshes binded on disposed material).Second we need know - deleted material on this mesh or not, but how, if we get "material" we get normal StandardMaterial. Check every time contains scene.materials this material or not is horrable, but how make this correct? Quote Link to comment Share on other sites More sharing options...
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.