Skip to content

Commit

Permalink
fixed cppcheck reported suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Dec 13, 2024
1 parent 966e575 commit 6314667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vsg/animation/CameraAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ CameraAnimation::CameraAnimation(ref_ptr<Object> in_object, const Path& in_filen
// convert TransformSampler to CameraSampler
cameraSampler = CameraSampler::create();
cameraSampler->name = ts->name;
auto& ckf = cameraSampler->keyframes = CameraKeyframes::create();
const auto& ckf = cameraSampler->keyframes = CameraKeyframes::create();

ckf->positions = tkf->positions;
ckf->rotations = tkf->rotations;
Expand All @@ -66,7 +66,7 @@ CameraAnimation::CameraAnimation(ref_ptr<Object> in_object, const Path& in_filen
else if (auto keyframes = read_object.cast<TransformKeyframes>())
{
cameraSampler = CameraSampler::create();
auto& ckf = cameraSampler->keyframes = CameraKeyframes::create();
const auto& ckf = cameraSampler->keyframes = CameraKeyframes::create();

ckf->positions = keyframes->positions;
ckf->rotations = keyframes->rotations;
Expand Down

0 comments on commit 6314667

Please sign in to comment.