|
|
@ -536,7 +536,7 @@ namespace MWRender
|
|
|
|
return mKeyframes->mTextKeys;
|
|
|
|
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;
|
|
|
|
std::string kfname = model;
|
|
|
|
Misc::StringUtils::lowerCaseInPlace(kfname);
|
|
|
|
Misc::StringUtils::lowerCaseInPlace(kfname);
|
|
|
@ -565,7 +565,7 @@ namespace MWRender
|
|
|
|
NodeMap::const_iterator found = nodeMap.find(bonename);
|
|
|
|
NodeMap::const_iterator found = nodeMap.find(bonename);
|
|
|
|
if (found == nodeMap.end())
|
|
|
|
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;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1668,7 +1668,7 @@ namespace MWRender
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setObjectRoot(model, false, false, false);
|
|
|
|
setObjectRoot(model, false, false, false);
|
|
|
|
if (animated)
|
|
|
|
if (animated)
|
|
|
|
addAnimSource(model);
|
|
|
|
addAnimSource(model, model);
|
|
|
|
|
|
|
|
|
|
|
|
if (!ptr.getClass().getEnchantment(ptr).empty())
|
|
|
|
if (!ptr.getClass().getEnchantment(ptr).empty())
|
|
|
|
addGlow(mObjectRoot, getEnchantmentColor(ptr));
|
|
|
|
addGlow(mObjectRoot, getEnchantmentColor(ptr));
|
|
|
|