|
|
|
@ -536,7 +536,7 @@ namespace MWRender
|
|
|
|
|
return mKeyframes->mTextKeys;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Animation::addAnimSource(const std::string &model)
|
|
|
|
|
void Animation::addAnimSource(const std::string &model, const std::string& baseModel)
|
|
|
|
|
{
|
|
|
|
|
std::string kfname = model;
|
|
|
|
|
Misc::StringUtils::lowerCaseInPlace(kfname);
|
|
|
|
@ -565,7 +565,7 @@ namespace MWRender
|
|
|
|
|
NodeMap::const_iterator found = nodeMap.find(bonename);
|
|
|
|
|
if (found == nodeMap.end())
|
|
|
|
|
{
|
|
|
|
|
std::cerr << "Warning: addAnimSource: can't find bone '" + bonename << "' in " << model << " (referenced by " << kfname << ")" << std::endl;
|
|
|
|
|
std::cerr << "Warning: addAnimSource: can't find bone '" + bonename << "' in " << baseModel << " (referenced by " << kfname << ")" << std::endl;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1668,7 +1668,7 @@ namespace MWRender
|
|
|
|
|
{
|
|
|
|
|
setObjectRoot(model, false, false, false);
|
|
|
|
|
if (animated)
|
|
|
|
|
addAnimSource(model);
|
|
|
|
|
addAnimSource(model, model);
|
|
|
|
|
|
|
|
|
|
if (!ptr.getClass().getEnchantment(ptr).empty())
|
|
|
|
|
addGlow(mObjectRoot, getEnchantmentColor(ptr));
|
|
|
|
|