private void SyncAnimationsListNow() { _ignoreAnimationChange = true; try { var hasLayers = _animation.EnumerateLayers().Skip(1).Any(); _animationsJSON.choices = _animation.clips.Select(c => c.animationName).ToList(); if (hasLayers) { _animationsJSON.displayChoices = _animation.clips.Select(c => $"[{c.animationLayer}] {c.animationName}").ToList(); } _animationsJSON.valNoCallback = null; _animationsJSON.valNoCallback = _animation.current.animationName; } finally { _ignoreAnimationChange = false; } }