mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-13 07:14:31 +00:00
Fix "part has no parents" warning message caused by nodes being destroyed in the incorrect order
This commit is contained in:
parent
f417d7780a
commit
8fb8c2bae5
@ -75,6 +75,7 @@ void CreatureWeaponAnimation::showCarriedLeft(bool show)
|
||||
|
||||
void CreatureWeaponAnimation::updateParts()
|
||||
{
|
||||
mAmmunition.reset();
|
||||
mWeapon.reset();
|
||||
mShield.reset();
|
||||
|
||||
|
@ -567,6 +567,7 @@ void NpcAnimation::updateParts()
|
||||
static const size_t slotlistsize = sizeof(slotlist)/sizeof(slotlist[0]);
|
||||
|
||||
bool wasArrowAttached = (mAmmunition.get() != NULL);
|
||||
mAmmunition.reset();
|
||||
|
||||
MWWorld::InventoryStore& inv = mPtr.getClass().getInventoryStore(mPtr);
|
||||
for(size_t i = 0;i < slotlistsize && mViewMode != VM_HeadOnly;i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user