1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 02:41:35 +00:00

Copy by ref, fix unable to find rules warning garbage

This commit is contained in:
Sam Hellawell 2024-07-20 03:06:24 +01:00
parent 4bd078a6db
commit a7a105dfdd
2 changed files with 4 additions and 4 deletions

View file

@ -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
{ {

View file

@ -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;