Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Interaction): make force stop interactions wait for end of frame
Previously, it was possible to get the force stop interactions into an infinite loop by calling `ForceStopTouching` or `ForceStopInteracting` from within an event listener from the Stop Using event which would in turn could emit the Stop Using event again and therefore getting stuck in an infinite loop. The fix now ensures that any interactable object force stop events are done at the end of the frame giving the controller scripts time to correctly clean up.
- Loading branch information
1 parent
88dcf8e
commit 6a94c07
Showing
1 changed file
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters