From 228da297f285ca4aeabd93eeed93c4767027d09b Mon Sep 17 00:00:00 2001 From: Acid Bubbles Date: Thu, 2 Jun 2022 13:11:33 -0400 Subject: [PATCH] Use segments by default --- src/AtomAnimations/Animations/AtomAnimationClip.cs | 2 +- .../Components/AnimationControlPanel/AnimationControlPanel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AtomAnimations/Animations/AtomAnimationClip.cs b/src/AtomAnimations/Animations/AtomAnimationClip.cs index 46b873df..5085347a 100644 --- a/src/AtomAnimations/Animations/AtomAnimationClip.cs +++ b/src/AtomAnimations/Animations/AtomAnimationClip.cs @@ -16,7 +16,7 @@ public class AnimationSettingModifiedEvent : UnityEvent { } 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"; diff --git a/src/UI/Components/AnimationControlPanel/AnimationControlPanel.cs b/src/UI/Components/AnimationControlPanel/AnimationControlPanel.cs index 900c5727..fffdc017 100644 --- a/src/UI/Components/AnimationControlPanel/AnimationControlPanel.cs +++ b/src/UI/Components/AnimationControlPanel/AnimationControlPanel.cs @@ -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)); }