forked from mirror/openmw-tes3mp
Recreate shaders if necessary when the NpcAnimation is rebuilt
This fixes certain equipment losing the 'invisibility' effect after a view-mode switch with shaders enabled. Because the initial build of shaders done by the resource manager is not aware of the override state in the NpcAnimation's object root, we have to build new shaders here.
This commit is contained in:
parent
e823cbf018
commit
f51e06bc47
1 changed files with 3 additions and 0 deletions
|
@ -403,6 +403,9 @@ void NpcAnimation::rebuild()
|
|||
{
|
||||
updateNpcBase();
|
||||
|
||||
if (mAlpha != 1.f)
|
||||
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
||||
|
||||
MWBase::Environment::get().getMechanicsManager()->forceStateUpdate(mPtr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue