mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 15:45:37 +00:00
Fix issue with body part events not propogating to actors
This commit is contained in:
parent
031502b2ab
commit
1518d630ca
@ -555,6 +555,14 @@ namespace CSMWorld
|
|||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
setupRace(race, data);
|
setupRace(race, data);
|
||||||
|
// Race was changed. Need to mark actor dependencies as dirty.
|
||||||
|
// Cannot use markDirtyDependency because that would invalidate
|
||||||
|
// the current iterator.
|
||||||
|
for (auto actorIt : mCachedActors)
|
||||||
|
{
|
||||||
|
if (actorIt->hasDependency(race))
|
||||||
|
mDirtyActors.emplace(actorIt->getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mDirtyRaces.clear();
|
mDirtyRaces.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user