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
+4
View File
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a list of planned features and their completion status to the main README file.
### Fixed
- A bug where released actor is going to be NULL whenever the OnActorReleased event fires.
## [1.9.1] - 2023-10-11
### Fixed
@@ -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