mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Merged pull request #1807
This commit is contained in:
commit
326a3e61f4
1 changed files with 11 additions and 6 deletions
|
@ -1229,12 +1229,17 @@ bool CharacterController::updateWeaponState()
|
||||||
&& mUpperBodyState != UpperCharState_UnEquipingWeap
|
&& mUpperBodyState != UpperCharState_UnEquipingWeap
|
||||||
&& !isStillWeapon)
|
&& !isStillWeapon)
|
||||||
{
|
{
|
||||||
// Note: we do not disable unequipping animation automatically to avoid body desync
|
// We can not play un-equip animation when we switch to HtH
|
||||||
getWeaponGroup(mWeaponType, weapgroup);
|
// because we already un-equipped weapon
|
||||||
mAnimation->play(weapgroup, priorityWeapon,
|
if (weaptype != WeapType_HandToHand || mWeaponType == WeapType_Spell)
|
||||||
MWRender::Animation::BlendMask_All, false,
|
{
|
||||||
1.0f, "unequip start", "unequip stop", 0.0f, 0);
|
// Note: we do not disable unequipping animation automatically to avoid body desync
|
||||||
mUpperBodyState = UpperCharState_UnEquipingWeap;
|
getWeaponGroup(mWeaponType, weapgroup);
|
||||||
|
mAnimation->play(weapgroup, priorityWeapon,
|
||||||
|
MWRender::Animation::BlendMask_All, false,
|
||||||
|
1.0f, "unequip start", "unequip stop", 0.0f, 0);
|
||||||
|
mUpperBodyState = UpperCharState_UnEquipingWeap;
|
||||||
|
}
|
||||||
|
|
||||||
if(!downSoundId.empty())
|
if(!downSoundId.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue