Animation instant transition on unequipping ammo mid-attack
Issue Description
If you unequip, or lose, your ammo during a bow attack animation, openmw instantly cancels the animation, leading to a jarring transition back to idle.
Vanilla Morrowind plays the full bow animation to its end, without the ammo.
Steps to Reproduce
Wind up a bow attack but unequip your arrows without releasing.
- OpenMW: instant transition to idle on closing inventory
- Morrowind: release animation plays on closing inventory
System Information
- OpenMW Version: Revision db7feb82
- Operating System & Version: EndeavourOS kernel 6.18.9
- GPU: RX 7900XT
- Morrowind Version: Steam
- Language: English
- Addons: Tribunal, Bloodmoon
Mods
- Are you using mods? No
- Are you using any shader mods? No
- Does it happen in a clean vanilla install? No
I don't think any further details or logs are necessary since the code that cancels the animation is easily identifiable: https://gitlab.com/OpenMW/openmw/-/blob/59a2ccdf1157263087715125639a1ce37a4b904f/apps/openmw/mwmechanics/character.cpp#L1330
The correct behavior in this case would be to transition to release, skipping projectile/ammo related actions.