mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Make Coverity happy about animation blending
This commit is contained in:
parent
312b7af954
commit
03091f8ce0
@ -143,6 +143,11 @@ namespace MWRender
|
||||
setKeyframeTrack(keyframeTrack, newState, blendRules);
|
||||
}
|
||||
|
||||
AnimBlendController::AnimBlendController()
|
||||
: mEasingFn(&Easings::sineOut)
|
||||
{
|
||||
}
|
||||
|
||||
NifAnimBlendController::NifAnimBlendController(const osg::ref_ptr<SceneUtil::KeyframeController>& keyframeTrack,
|
||||
const AnimBlendStateData& newState, const osg::ref_ptr<const SceneUtil::AnimBlendRules>& blendRules)
|
||||
: AnimBlendController(keyframeTrack, newState, blendRules)
|
||||
|
@ -30,7 +30,7 @@ namespace MWRender
|
||||
AnimBlendController(const osg::ref_ptr<SceneUtil::KeyframeController>& keyframeTrack,
|
||||
const AnimBlendStateData& animState, const osg::ref_ptr<const SceneUtil::AnimBlendRules>& blendRules);
|
||||
|
||||
AnimBlendController() {}
|
||||
AnimBlendController();
|
||||
|
||||
void setKeyframeTrack(const osg::ref_ptr<SceneUtil::KeyframeController>& kft,
|
||||
const AnimBlendStateData& animState, const osg::ref_ptr<const SceneUtil::AnimBlendRules>& blendRules);
|
||||
@ -111,7 +111,7 @@ namespace MWRender
|
||||
{
|
||||
public:
|
||||
BoneAnimBlendControllerWrapper(osg::ref_ptr<BoneAnimBlendController> rootCallback, osgAnimation::Bone* node)
|
||||
: mRootCallback(rootCallback)
|
||||
: mRootCallback(std::move(rootCallback))
|
||||
, mNode(node)
|
||||
{
|
||||
}
|
||||
@ -135,7 +135,7 @@ namespace MWRender
|
||||
|
||||
private:
|
||||
osg::ref_ptr<BoneAnimBlendController> mRootCallback;
|
||||
osgAnimation::Bone* mNode;
|
||||
osgAnimation::Bone* mNode{ nullptr };
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace SceneUtil
|
||||
|
||||
if (delimiterInd == std::string::npos)
|
||||
{
|
||||
group = full;
|
||||
group = std::move(full);
|
||||
Misc::StringUtils::trim(group);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user