diff --git a/apps/openmw/mwrender/weaponanimation.cpp b/apps/openmw/mwrender/weaponanimation.cpp index aa87edd43..71bef0f5a 100644 --- a/apps/openmw/mwrender/weaponanimation.cpp +++ b/apps/openmw/mwrender/weaponanimation.cpp @@ -170,6 +170,9 @@ void WeaponAnimation::releaseArrow(MWWorld::Ptr actor, float attackStrength) MWWorld::Ptr weaponPtr = *weapon; MWWorld::Ptr ammoPtr = *ammo; +#ifdef USE_OPENXR + orient = osg::computeLocalToWorld(nodepaths[0]).getRotate(); +#endif MWBase::Environment::get().getWorld()->launchProjectile(actor, ammoPtr, launchPos, orient, weaponPtr, speed, attackStrength); inv.remove(ammoPtr, 1, actor);