Skip to content

Commit

Permalink
Fix #127: don't set wrapmode on animation component so that we don't …
Browse files Browse the repository at this point in the history
…mess with multiple animation clips on the same component
  • Loading branch information
JonnyOThan committed Jan 31, 2024
1 parent 240ee4d commit 958720c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions RasterPropMonitor/Auxiliary modules/JSICallbackAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ public CallbackAnimationSet(ConfigNode node, string variableName, InternalProp t
if (looping)
{
onAnim[animationName].wrapMode = WrapMode.Loop;
onAnim.wrapMode = WrapMode.Loop;
onAnim[animationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down Expand Up @@ -360,7 +359,6 @@ public CallbackAnimationSet(ConfigNode node, string variableName, InternalProp t
if (looping)
{
offAnim[stopAnimationName].wrapMode = WrapMode.Loop;
offAnim.wrapMode = WrapMode.Loop;
offAnim[stopAnimationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down
4 changes: 0 additions & 4 deletions RasterPropMonitor/Auxiliary modules/JSIVariableAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ public VariableAnimationSet(ConfigNode node, InternalProp thisProp, RasterPropMo
if (looping)
{
onAnim[animationName].wrapMode = WrapMode.Loop;
onAnim.wrapMode = WrapMode.Loop;
onAnim[animationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down Expand Up @@ -362,7 +361,6 @@ public VariableAnimationSet(ConfigNode node, InternalProp thisProp, RasterPropMo
if (looping)
{
offAnim[stopAnimationName].wrapMode = WrapMode.Loop;
offAnim.wrapMode = WrapMode.Loop;
offAnim[stopAnimationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down Expand Up @@ -1017,7 +1015,6 @@ public VariableAnimationSet(ConfigNode node, InternalProp thisProp, RasterPropMo
if (looping)
{
onAnim[animationName].wrapMode = WrapMode.Loop;
onAnim.wrapMode = WrapMode.Loop;
onAnim[animationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down Expand Up @@ -1047,7 +1044,6 @@ public VariableAnimationSet(ConfigNode node, InternalProp thisProp, RasterPropMo
if (looping)
{
offAnim[stopAnimationName].wrapMode = WrapMode.Loop;
offAnim.wrapMode = WrapMode.Loop;
offAnim[stopAnimationName].speed = animationSpeed;
mode = Mode.LoopingAnimation;
}
Expand Down

0 comments on commit 958720c

Please sign in to comment.