Skip to content

Commit

Permalink
Fix callback animators not starting in off state correctly
Browse files Browse the repository at this point in the history
part of #143
  • Loading branch information
JonnyOThan committed Sep 8, 2024
1 parent 1c79ddb commit 994c3e8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,7 @@ public void OnStart(InternalProp thisProp, string variableName)

LoadAnims(thisProp);

if (onAnim != null)
{
onAnim.Play();
}
TurnOff();
}

private void LoadAnims(InternalProp thisProp)
Expand Down Expand Up @@ -596,13 +593,6 @@ internal void TearDown()
{
GameEvents.OnCameraChange.Remove(CameraChangeCallback);
}
if (affectedMaterial != null)
{
UnityEngine.Object.Destroy(affectedMaterial);
affectedMaterial = null;
}
textureLayer = null;
controlledTransform = null;
}

/// <summary>
Expand Down

0 comments on commit 994c3e8

Please sign in to comment.