Skip to content
Snippets Groups Projects
Commit 7dbbb1ba authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Reverted a previous change to the skin calculations which turned out to be incorrect.

parent 39b00a21
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,8 @@ NiSkinData::NiSkinData( const Ref<NiTriBasedGeom> & owner ) NI_SKIN_DATA_CONSTRU
Matrix44 sr_world = skinInst->GetSkeletonRoot()->GetWorldTransform();
//Inverse owner NiTriBasedGeom matrix & multiply with skeleton root matrix
Matrix44 res_mat = owner_mat.Inverse() * sr_world;
//Matrix44 res_mat = (sr_world.Inverse() * owner_mat).Inverse() * sr_world;
//Matrix44 res_mat = owner_mat.Inverse() * sr_world;
Matrix44 res_mat = (sr_world.Inverse() * owner_mat).Inverse() * sr_world;
//Store result
res_mat.Decompose( translation, rotation, scale );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment