From 8fb8c2bae5138e90a7f4e0e24bf16c525ada420e Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 7 Jun 2016 02:42:57 +0200 Subject: [PATCH] Fix "part has no parents" warning message caused by nodes being destroyed in the incorrect order --- apps/openmw/mwrender/creatureanimation.cpp | 1 + apps/openmw/mwrender/npcanimation.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/creatureanimation.cpp b/apps/openmw/mwrender/creatureanimation.cpp index 9cd35ecde..d4e48e1fd 100644 --- a/apps/openmw/mwrender/creatureanimation.cpp +++ b/apps/openmw/mwrender/creatureanimation.cpp @@ -75,6 +75,7 @@ void CreatureWeaponAnimation::showCarriedLeft(bool show) void CreatureWeaponAnimation::updateParts() { + mAmmunition.reset(); mWeapon.reset(); mShield.reset(); diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index eaafe63fd..e44e2fb30 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -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++)