Remove an unneeded forceUpdate method

actorid
Chris Robinson 12 years ago
parent e3d5a1b38d
commit d77d60cbc2

@ -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…
Cancel
Save