Skip to content

Commit

Permalink
fix MFDs and other broken callback animator things (part of #143)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Sep 11, 2024
1 parent 994c3e8 commit 719406e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public override void OnLoad(ConfigNode node)
{
try
{
var variableSet = ScriptableObject.CreateInstance<CallbackAnimationSet>();
var variableSet = gameObject.AddComponent<CallbackAnimationSet>();
variableSet.Load(variableNodes[i], internalProp);
variableSets.Add(variableSet);
}
Expand Down Expand Up @@ -191,7 +191,7 @@ public bool NotifyTransformBatched(Transform transform)
/// independent range of enabling values, but it depends on the parent
/// JSICallback class to control what variable is tracked.
/// </summary>
public class CallbackAnimationSet : ScriptableObject
public class CallbackAnimationSet : MonoBehaviour
{
[SerializeField] private string scaleRangeMin, scaleRangeMax;
[SerializeField] private bool reverse;
Expand Down

0 comments on commit 719406e

Please sign in to comment.