private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
string bone = comboBox1.Text;
foreach (RenderAvatar av in Avatars.Values)
{
Bone b;
if (av.glavatar.skel.mBones.TryGetValue(bone, out b))
{
textBox_sx.Text = (b.scale.X - 1.0f).ToString();
textBox_sy.Text = (b.scale.Y - 1.0f).ToString();
textBox_sz.Text = (b.scale.Z - 1.0f).ToString();
float x, y, z;
b.rot.GetEulerAngles(out x, out y, out z);
textBox_x.Text = x.ToString();
textBox_y.Text = y.ToString();
textBox_z.Text = z.ToString();
}
}
}