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

Added code to ensure that bones have their flag set properly, even if they are...

Added code to ensure that bones have their flag set properly, even if they are not so in the original NIF file.
parent e83ec313
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,11 @@ void NiSkinInstance::FixLinks( const vector<NiObjectRef> & objects, list<uint> &
if ( skeletonRoot != NULL ) {
skeletonRoot->AddSkin( this );
}
//Ensure that bones have the flag set properly
for ( uint i = 0; i < bones.size(); ++i ) {
bones[i]->SetSkinFlag(true);
}
}
list<NiObjectRef> NiSkinInstance::GetRefs() const {
......
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