mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Merge branch 'no_hugs' into 'master'
Don't allow non-bipedal actors to use non-weapon animations while moving Closes #6868 See merge request OpenMW/openmw!2153
This commit is contained in:
commit
45a94bdf32
@ -584,6 +584,11 @@ void CharacterController::refreshMovementAnims(CharacterState movement, bool for
|
|||||||
MWRender::Animation::BlendMask movemask = MWRender::Animation::BlendMask_All;
|
MWRender::Animation::BlendMask movemask = MWRender::Animation::BlendMask_All;
|
||||||
|
|
||||||
std::string weapShortGroup = getWeaponShortGroup(mWeaponType);
|
std::string weapShortGroup = getWeaponShortGroup(mWeaponType);
|
||||||
|
|
||||||
|
// Non-biped creatures don't use spellcasting-specific movement animations.
|
||||||
|
if(!isRealWeapon(mWeaponType) && !mPtr.getClass().isBipedal(mPtr))
|
||||||
|
weapShortGroup.clear();
|
||||||
|
|
||||||
if (swimpos == std::string::npos && !weapShortGroup.empty())
|
if (swimpos == std::string::npos && !weapShortGroup.empty())
|
||||||
{
|
{
|
||||||
std::string weapMovementAnimName;
|
std::string weapMovementAnimName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user