fix a bug where released actor is going to be null whenever the OnActorReleased event fires

This commit is contained in:
Mamadou Babaei
2023-11-03 18:39:06 +01:00
parent 2ed988f41a
commit 2ea9b94116
2 changed files with 6 additions and 2 deletions
@@ -1977,9 +1977,9 @@ void ASGPawn::FImpl::Release(FSGGrabState& GrabState) const
ApplyHandVelocityToGrabbedActor(GrabState);
SetGrabbedActor(GrabState, nullptr);
TriggerActorReleasedEvent(GrabState.Hand, GrabState.GrabbedActor);
SetGrabbedActor(GrabState, nullptr);
}
void ASGPawn::FImpl::TriggerGrabStateUpdatedEvent(const FSGGrabState& GrabState) const