Jump to content

Unigine::Materials::removeMaterial error


photo

Recommended Posts

Posted

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

error.png

Posted

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:

Posted

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

×
×
  • Create New...