Copy by ref, fix unable to find rules warning garbage

pull/3236/head
Sam Hellawell 5 months ago
parent 4bd078a6db
commit a7a105dfdd

@ -776,8 +776,8 @@ namespace MWRender
blendRules
= mResourceSystem->getAnimBlendRulesManager()->getRules(globalBlendConfigPath, blendConfigPath);
if (blendRules == nullptr)
Log(Debug::Warning) << "Unable to find animation blending rules: '" << blendConfigPath.value()
<< "' or '" << globalBlendConfigPath.value() << "'";
Log(Debug::Warning) << "Unable to find animation blending rules: '" << yamlpath << "' or '"
<< globalBlendConfigPath.value() << "'";
}
else
{

@ -324,8 +324,8 @@ namespace MWRender
MWRender::RotateController* rotateController = dynamic_cast<MWRender::RotateController*>(updateCb);
if (rotateController)
{
const osg::Quat rotate = rotateController->getRotate();
const osg::Vec3f offset = rotateController->getOffset();
const osg::Quat& rotate = rotateController->getRotate();
const osg::Vec3f& offset = rotateController->getOffset();
osg::NodePathList nodepaths = node->getParentalNodePaths(rotateController->getRelativeTo());
osg::Quat worldOrient;

Loading…
Cancel
Save