Skip to content

Commit

Permalink
Use segments by default
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Jun 2, 2022
1 parent bc57df0 commit 228da29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AtomAnimations/Animations/AtomAnimationClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class AnimationSettingModifiedEvent : UnityEvent<string> { }
public static readonly int SharedAnimationSegmentId = SharedAnimationSegment.ToId();
public const string NoneAnimationSegment = "[]";
public static readonly int NoneAnimationSegmentId = NoneAnimationSegment.ToId();
public const string DefaultAnimationSegment = NoneAnimationSegment;
public const string DefaultAnimationSegment = "Segment 1";
public const string DefaultAnimationLayer = "Main";
public const string DefaultAnimationName = "Anim 1";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void SyncAnimationsListNow()
_animationsJSON.valNoCallback = null;
_animationsJSON.valNoCallback = _animationEditContext.current.animationName;

_segmentsUI.gameObject.SetActive(_animationEditContext.animation.index.useSegment);
_segmentsUI.gameObject.SetActive(_animationEditContext.animation.index.segmentNames.Count > 1);
_layersUI.gameObject.SetActive(_animationEditContext.animation.index.segmentsById.Any(s => s.Value.layerNames.Count > 1));
}

Expand Down

0 comments on commit 228da29

Please sign in to comment.