private void button_vparam_Click(object sender, EventArgs e)
{
//int paramid = int.Parse(textBox_vparamid.Text);
//float weight = (float)hScrollBar_weight.Value/100f;
float weightx = float.Parse(textBox_x.Text);
float weighty = float.Parse(textBox_y.Text);
float weightz = float.Parse(textBox_z.Text);
foreach (RenderAvatar av in Avatars.Values)
{
//av.glavatar.applyMorph(av.avatar,paramid,weight);
av.glavatar.skel.deformbone(comboBox1.Text, new Vector3(float.Parse(textBox_sx.Text), float.Parse(textBox_sy.Text), float.Parse(textBox_sz.Text)), Quaternion.CreateFromEulers((float)(Math.PI * (weightx / 180)), (float)(Math.PI * (weighty / 180)), (float)(Math.PI * (weightz / 180))));
foreach (GLMesh mesh in av.glavatar._meshes.Values)
{
mesh.applyjointweights();
}
}
}