Skip to content
Snippets Groups Projects
Commit 760827d3 authored by Tazpn's avatar Tazpn
Browse files

Fix bug with DAoC and importing kob_m_head01.nif

parent 978b1eb1
No related branches found
No related tags found
No related merge requests found
...@@ -334,6 +334,9 @@ bool NifImporter::ImportSkin(ImpNode *node, NiTriBasedGeomRef triGeom) ...@@ -334,6 +334,9 @@ bool NifImporter::ImportSkin(ImpNode *node, NiTriBasedGeomRef triGeom)
iskinImport->SetBoneTm(boneRef, ib3, ib3); iskinImport->SetBoneTm(boneRef, ib3, ib3);
} }
} }
if (bones.Count() != data->GetBoneCount())
return false;
ObjectState os = tnode->EvalWorldState(0); ObjectState os = tnode->EvalWorldState(0);
// Need to get a list of bones and weights for each vertex. // Need to get a list of bones and weights for each vertex.
......
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