Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string bone = "";
- vector<string> shapes;
- vector<string> nifBones;
- vector<string> skelBones;
- if (!AnimSkeleton::getInstance().GetActiveBoneNames(skelBones))
- return;
- NifFile nif;
- if(IsOutfit) {
- nif = workNif;
- OutfitShapes(outfitShapes);
- } else {
- nif = baseNif;
- RefShapes(outfitShapes);
- }
- if (!nif.GetShapeList(shapes))
- return;
- for (auto s: shapes) {
- if (!workNif.GetShapeBoneList(s, nifBones))
- return;
- for (auto nb: nifBones) {
- auto it = find_if(skelBones.begin(), skelBones.end(), [&](string & sb){ return _stricmp(sb.c_str(), nb.c_str()) == 0; });
- if(it != skelBones.end()) {
- bone = *it;
- break;
- }
- }
- if (bone != "")
- break;
- nifBones.clear();
- }
- if (bone == "") {
- wxMessageBox("No matching comparison bone found!", "Error");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement