Open sp-rafael-lecina opened 4 years ago
When trying to change the effect on an emmiter I've found that release is not called in proper variable https://github.com/effekseer/EffekseerForCocos2d-x/blob/6dc954749da2aded607fcc8c1133e58763f91c49/Players/Cocos2d-x_v3/Effekseer.cpp#L706 That line should be if (this->effect != nullptr) this->effect->release(); Otherwise you are releasing the effect you are trying to set
if (this->effect != nullptr) this->effect->release();
It is bug. Thank you for your report. I will fix it
I fixed
Thanks!
When trying to change the effect on an emmiter I've found that release is not called in proper variable https://github.com/effekseer/EffekseerForCocos2d-x/blob/6dc954749da2aded607fcc8c1133e58763f91c49/Players/Cocos2d-x_v3/Effekseer.cpp#L706 That line should be
if (this->effect != nullptr) this->effect->release();
Otherwise you are releasing the effect you are trying to set