mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-05 06:11:32 +00:00
Copy by ref, fix unable to find rules warning garbage
This commit is contained in:
parent
4bd078a6db
commit
a7a105dfdd
2 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue