Skip to content

Commit

Permalink
fix(Interaction): ensure valid grab attempt is called
Browse files Browse the repository at this point in the history
The Interact Grab script requires the `IsValidGrabAttempt` method
to be called to set up state for future method calls.

This was removed during a cleanup that said the line was not being
used, but the variable it was being assigned to wasn't being used,
however, the method call was still required.
  • Loading branch information
thestonefox committed Sep 12, 2017
1 parent 9116584 commit 6040972
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ protected virtual void AttemptGrabObject()
protected virtual void PerformGrabAttempt(GameObject objectToGrab)
{
IncrementGrabState();
IsValidGrabAttempt(objectToGrab);
undroppableGrabbedObject = GetUndroppableObject();
}

Expand Down

0 comments on commit 6040972

Please sign in to comment.