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 blendRules
= mResourceSystem->getAnimBlendRulesManager()->getRules(globalBlendConfigPath, blendConfigPath); = mResourceSystem->getAnimBlendRulesManager()->getRules(globalBlendConfigPath, blendConfigPath);
if (blendRules == nullptr) if (blendRules == nullptr)
Log(Debug::Warning) << "Unable to find animation blending rules: '" << blendConfigPath.value() Log(Debug::Warning) << "Unable to find animation blending rules: '" << yamlpath << "' or '"
<< "' or '" << globalBlendConfigPath.value() << "'"; << globalBlendConfigPath.value() << "'";
} }
else else
{ {

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

Loading…
Cancel
Save