From 1f7b799e5eedac36728336521dd212fe7bf98ed9 Mon Sep 17 00:00:00 2001 From: Filip Henningsson Date: Thu, 7 Nov 2024 17:00:09 +0100 Subject: [PATCH] Fixed disabling DeformableTerrainFailureVolume --- AGXUnity/Model/DeformableTerrainFailureVolume.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGXUnity/Model/DeformableTerrainFailureVolume.cs b/AGXUnity/Model/DeformableTerrainFailureVolume.cs index e20f5dae..7f9230b2 100644 --- a/AGXUnity/Model/DeformableTerrainFailureVolume.cs +++ b/AGXUnity/Model/DeformableTerrainFailureVolume.cs @@ -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(); }