Problem with root offset

e3ffdefc81d9820550fad67550d6bb985495b6bb.jpeg

9516408edc37b2057018421a2b2ee271d51e0b4d.jpeg

0800b8268cc6bc483038493a8241e3a8852c99f6.jpeg
I have created this in the character blueprint to play an animation when the G key is pressed. However the weapon flies off-screen upwards during the animation. The way I have exported it in my modeling package is that the weapon skeleton is posed in the hands of the character in the scene. And my guess is it is adding that offset from zero during that animation. Is there a way to fix that? In UE4? I could go back into the modeling package and delete everything except for the weapon and move the skeleton to zero. But that does not seem right.

However the idle pose and the weapon’s position is correct without any offset.

Used the “recursively set translation targeting skeleton” and it was fixed.