Skip to content

Commit

Permalink
Fixed disabling DeformableTerrainFailureVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Nov 7, 2024
1 parent 8c76324 commit 1f7b799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AGXUnity/Model/DeformableTerrainFailureVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected override void OnEnable()
protected override void OnDisable()
{
if ( Simulation.HasInstance )
Simulation.Instance.StepCallbacks.PreStepForward += TriggerFailure;
Simulation.Instance.StepCallbacks.PreStepForward -= TriggerFailure;
base.OnDisable();
}

Expand Down

0 comments on commit 1f7b799

Please sign in to comment.