OnAnimationEnd callback unreliable for shoot animation
Created by: yohjimane
Describe the bug OnAnimationEnd can be forced to get called by setting breakpoints, but without breakpoints it does not work for certain animations.
To Reproduce
- Using mixed build, start and load into new game, attach debugger
- Set breakpoint on line 640 of WeaponMagazined.cpp
- Shoot weapon
- Observe breakpoint does not get hit
- Set breakpoint on lines 207 and 214 of HudItem.cpp
- Shoot weapon
- Breakpoint will get hit in this order: line 207 2x, line 214, line 640 of WeaponMagazined.cpp
Expected behavior OnAnimationEnd should be called reliably on animation end.
System info:
- Windows 10
- Latest openxray dev: 663d2ba