public void LoadMeshUI()
{
BrgMesh mesh = (BrgMesh)this.Plugin.brgObjectsTreeListView.SelectedObject;
this.Plugin.interpolationTypeCheckBox.Checked = Convert.ToBoolean(mesh.Header.InterpolationType);
this.Plugin.brgMeshFlagsCheckedListBox.SetEnum<BrgMeshFlag>(mesh.Header.Flags);
this.Plugin.brgMeshFormatCheckedListBox.SetEnum<BrgMeshFormat>(mesh.Header.Format);
if (mesh.Header.AnimationType == BrgMeshAnimType.KeyFrame)
{
this.Plugin.keyframeRadioButton.Checked = true;
}
else if (mesh.Header.AnimationType == BrgMeshAnimType.NonUniform)
{
this.Plugin.nonuniRadioButton.Checked = true;
}
else if (mesh.Header.AnimationType == BrgMeshAnimType.SkinBone)
{
this.Plugin.skinBoneRadioButton.Checked = true;
}
}