diff --git a/apps/openmw/mwrender/characterpreview.cpp b/apps/openmw/mwrender/characterpreview.cpp index a4b0c0560..e42218bc2 100644 --- a/apps/openmw/mwrender/characterpreview.cpp +++ b/apps/openmw/mwrender/characterpreview.cpp @@ -193,7 +193,7 @@ namespace MWRender else if(mAnimation->getInfo("torch")) mAnimation->disable("torch"); - mAnimation->forceUpdate(); + mAnimation->updateParts(true); mAnimation->runAnimation(0.0f); mViewport->setDimensions (0, 0, std::min(1.f, float(sizeX) / float(512)), std::min(1.f, float(sizeY) / float(1024))); diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index b44bb56ea..28f039cf1 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -168,7 +168,7 @@ void NpcAnimation::updateNpcBase() for(size_t i = 0;i < ESM::PRT_Count;i++) removeIndividualPart((ESM::PartReferenceType)i); - forceUpdate(); + updateParts(true); } void NpcAnimation::updateParts(bool forceupdate) diff --git a/apps/openmw/mwrender/npcanimation.hpp b/apps/openmw/mwrender/npcanimation.hpp index 88e4a9e04..ccc2c9aa0 100644 --- a/apps/openmw/mwrender/npcanimation.hpp +++ b/apps/openmw/mwrender/npcanimation.hpp @@ -68,8 +68,6 @@ private: NifOgre::ObjectList insertBoundedPart(const std::string &model, int group, const std::string &bonename); - void updateParts(bool forceupdate = false); - void removeIndividualPart(ESM::PartReferenceType type); void reserveIndividualPart(ESM::PartReferenceType type, int group, int priority); @@ -89,8 +87,7 @@ public: void setViewMode(ViewMode viewMode); - void forceUpdate() - { updateParts(true); } + void updateParts(bool forceupdate = false); }; }