fabre.cedric Posted May 5, 2022 Share Posted May 5, 2022 Hello, I have a small problem that I don't understand why. If I create a material like this: this->unigineMaterial = meshBase->inherit(this->guid); And later I want to unload this material en create a new material with the same guid like this : Unigine::Materials::removeMaterial(this->guid, false, false); this->unigineMaterial = meshBase->inherit(this->guid); The engine crash (see image). Could you please explain what I'm doing wrong ? Thanks Link to comment
silent Posted May 6, 2022 Share Posted May 6, 2022 Hi Fabre, Tried to do as you described, but looks like everything working fine with the latest 2.15.1 SDK. Could you please prepare a minimal test scene with this crash (maybe just by modifying any standard C++ sample from SDK)? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
fabre.cedric Posted May 6, 2022 Author Share Posted May 6, 2022 Hi Silent, I think that crash because the material is set to a mesh before... I'll try to reproduce this behavior and be back to you. Thanks Link to comment
Recommended Posts