Skip to content

Commit

Permalink
fix(Interactions): leave usage when disabling InteractUse
Browse files Browse the repository at this point in the history
  > **Breaking Changes**

Whenever the InteractUse script was disabled it stopped the usage of the
currently held object by the controller but also stopped the object's
using action. This fix makes sure to only force the controller to stop
the usage, not the object itself.

If users of VRTK depend on the old behavior they should stop the
object's usage themselves when the stopping is recognized using one of
the events or virtual methods.
  • Loading branch information
Christopher - Marcel Böddecker committed Apr 4, 2017
1 parent fc51ae5 commit 60bd7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/VRTK/Scripts/Interactions/VRTK_InteractUse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected virtual void OnEnable()

protected virtual void OnDisable()
{
ForceStopUsing();
ForceResetUsing();
ManageUseListener(false);
}

Expand Down

0 comments on commit 60bd7b5

Please sign in to comment.