mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
addEffect crash fix for objects with no model
This commit is contained in:
parent
16e080e252
commit
508c57d6e2
@ -1048,6 +1048,9 @@ namespace MWRender
|
||||
|
||||
void Animation::addEffect (const std::string& model, int effectId, bool loop, const std::string& bonename, std::string texture)
|
||||
{
|
||||
if (!mObjectRoot.get())
|
||||
return;
|
||||
|
||||
// Early out if we already have this effect
|
||||
for (std::vector<EffectParams>::iterator it = mEffects.begin(); it != mEffects.end(); ++it)
|
||||
if (it->mLoop && loop && it->mEffectId == effectId && it->mBoneName == bonename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user