mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Remove an unneeded forceUpdate method
This commit is contained in:
parent
e3d5a1b38d
commit
d77d60cbc2
3 changed files with 3 additions and 6 deletions
|
@ -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)));
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue