<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace open3mod
{
    public sealed partial class AnimationInspectionView : UserControl
    {
        private readonly Scene _scene;

        public AnimationInspectionView(Scene scene, TabPage tabPageAnimations)
        {
            _scene = scene;
            InitializeComponent();
            tabPageAnimations.Controls.Add(this);

            Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            if (scene.Raw.Animations != null)
            {
                foreach (var anim in scene.Raw.Animations)
                {
                    listBoxAnimations.Items.Add(anim.Name);
                }

                listBoxAnimations.SelectedIndex = 0;
                listBoxAnimations.Items.Add("None (Bind Pose)");
            }
        }

        public bool Empty
        {
            get { return _scene.Raw.AnimationCount == 0; }
        }


        private void OnChangeSelectedAnimation(object sender, EventArgs e)
        {

        }
    }
}<commit_msg>- show bind pose / initial pose in animation list.<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace open3mod
{
    public sealed partial class AnimationInspectionView : UserControl
    {
        private readonly Scene _scene;

        public AnimationInspectionView(Scene scene, TabPage tabPageAnimations)
        {
            _scene = scene;          
            
            Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            InitializeComponent();

            tabPageAnimations.Controls.Add(this);

            listBoxAnimations.Items.Add("None (Bind Pose)");

            if (scene.Raw.Animations != null)
            {
                foreach (var anim in scene.Raw.Animations)
                {
                    listBoxAnimations.Items.Add(anim.Name);
                }                
            }
            listBoxAnimations.SelectedIndex = 0;
        }

        public bool Empty
        {
            get { return _scene.Raw.AnimationCount == 0; }
        }


        private void OnChangeSelectedAnimation(object sender, EventArgs e)
        {
            _scene.SceneAnimator.ActiveAnimation = listBoxAnimations.SelectedIndex - 1;
        }
    }
}
{'fraction_non_alphanumeric': 0.0782144219763449, 'fraction_numerical': 0.002670736360167875, 'mean_word_length': 1.9133333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4920447', 'n_tokens_mistral': 692, 'n_tokens_neox': 665, 'n_words': 151}