Skip to content

Commit

Permalink
Update resources/projects/libraries/qt_utils/motion_editor/Motion.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: David Mansolino <mansolino.david@gmail.com>
  • Loading branch information
omichel and DavidMansolino authored May 14, 2020
1 parent 6ceee60 commit 1d6b119
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ void Motion::newPoseAt(int index) {
}

if (!hasFixedStep()) {
Pose *previousPose = index > 0 ? mPoses.at(index - 1) : NULL;
Pose *nextPose = index < mPoses.count() ? mPoses.at(index) : NULL;
const Pose *previousPose = index > 0 ? mPoses.at(index - 1) : NULL;
const Pose *nextPose = index < mPoses.count() ? mPoses.at(index) : NULL;
if (previousPose && nextPose)
pose->setTime(0.5 * (previousPose->time() + nextPose->time()));
else if (previousPose)
Expand Down

0 comments on commit 1d6b119

Please sign in to comment.