mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Fix visible sheaths for invisible actors
This commit is contained in:
parent
4098a7be1d
commit
880ec3ce7b
2 changed files with 4 additions and 4 deletions
|
@ -355,10 +355,6 @@ void ActorAnimation::updateQuiver()
|
|||
addGlow(arrow, glowColor);
|
||||
}
|
||||
}
|
||||
|
||||
// recreate shaders for invisible actors, otherwise new nodes will be visible
|
||||
if (mAlpha != 1.f)
|
||||
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
||||
}
|
||||
|
||||
void ActorAnimation::itemAdded(const MWWorld::ConstPtr& item, int /*count*/)
|
||||
|
|
|
@ -925,6 +925,10 @@ void NpcAnimation::showWeapons(bool showWeapon)
|
|||
|
||||
updateHolsteredWeapon(!mShowWeapons);
|
||||
updateQuiver();
|
||||
|
||||
// Recreate shaders for invisible actors, otherwise sheath nodes will be visible
|
||||
if (mAlpha != 1.f && mWeaponSheathing)
|
||||
mResourceSystem->getSceneManager()->recreateShaders(mObjectRoot);
|
||||
}
|
||||
|
||||
void NpcAnimation::showCarriedLeft(bool show)
|
||||
|
|
Loading…
Reference in a new issue