|
|
@ -388,9 +388,6 @@ void NpcAnimation::rebuild()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
updateNpcBase();
|
|
|
|
updateNpcBase();
|
|
|
|
|
|
|
|
|
|
|
|
if (mAlpha != 1.f)
|
|
|
|
|
|
|
|
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->forceStateUpdate(mPtr);
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->forceStateUpdate(mPtr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -651,6 +648,9 @@ void NpcAnimation::updateParts()
|
|
|
|
|
|
|
|
|
|
|
|
if (wasArrowAttached)
|
|
|
|
if (wasArrowAttached)
|
|
|
|
attachArrow();
|
|
|
|
attachArrow();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mAlpha != 1.f)
|
|
|
|
|
|
|
|
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -917,6 +917,8 @@ void NpcAnimation::showWeapons(bool showWeapon)
|
|
|
|
attachArrow();
|
|
|
|
attachArrow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mAlpha != 1.f)
|
|
|
|
|
|
|
|
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -942,6 +944,8 @@ void NpcAnimation::showCarriedLeft(bool show)
|
|
|
|
if (iter->getTypeName() == typeid(ESM::Light).name() && mObjectParts[ESM::PRT_Shield])
|
|
|
|
if (iter->getTypeName() == typeid(ESM::Light).name() && mObjectParts[ESM::PRT_Shield])
|
|
|
|
addExtraLight(mObjectParts[ESM::PRT_Shield]->getNode()->asGroup(), iter->get<ESM::Light>()->mBase);
|
|
|
|
addExtraLight(mObjectParts[ESM::PRT_Shield]->getNode()->asGroup(), iter->get<ESM::Light>()->mBase);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mAlpha != 1.f)
|
|
|
|
|
|
|
|
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
removeIndividualPart(ESM::PRT_Shield);
|
|
|
|
removeIndividualPart(ESM::PRT_Shield);
|
|
|
|