X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=model_shared.c;h=bcf683e33f5a6677f3ca4777d9fb814fd68b8dd7;hb=6d7ce4397972f050c17b11de2f75209bdd562b80;hp=8e707337afe4fe8c9b8d4273ddae4247272112c5;hpb=f847004b9818defbfd4bf15fe7b891fee2706079;p=xonotic%2Fdarkplaces.git diff --git a/model_shared.c b/model_shared.c index 8e707337..bcf683e3 100644 --- a/model_shared.c +++ b/model_shared.c @@ -3203,7 +3203,7 @@ static void Mod_Decompile_SMD(model_t *model, const char *filename, int firstpos // strangely the smd angles are for a transposed matrix, so we // have to generate a transposed matrix, then convert that... Matrix4x4_FromBonePose7s(&posematrix, model->num_posescale, model->data_poses7s + 7*(model->num_bones * poseindex + transformindex)); - Matrix4x4_ToArray12FloatGL(&posematrix, mtest[0]); + Matrix4x4_ToArray12FloatGL(&posematrix, mtest); AnglesFromVectors(angles, mtest[0], mtest[2], false); if (angles[0] >= 180) angles[0] -= 360; if (angles[1] >= 180) angles[1] -= 360;