Skip to content
Snippets Groups Projects
Commit 1bf10f27 authored by Amorilia's avatar Amorilia
Browse files

workaround in SkeletonRootAttr to extract correct skeleton root also for...

workaround in SkeletonRootAttr to extract correct skeleton root also for BabelFish.nif; probably needs some more testing
parent 1d093e31
No related branches found
No related tags found
No related merge requests found
......@@ -1233,7 +1233,15 @@ public:
flags = par->GetAttr("Flags")->asInt();
if ( (flags & 8) != 0 ) {
return par;
// extra check: skeleton root cannot be a bone (this fixes the BabelFish.nif problem)
int par_is_bone = false;
for ( vector<blk_ref>::const_iterator it = bones.begin(); it != bones.end(); ++it) {
if ( *it == par ) {
par_is_bone = true;
break;
};
}
if ( ! par_is_bone ) return par;
}
}
......
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