Skip to content

Commit

Permalink
Merge pull request #957 from LeeRiva/lrdev2
Browse files Browse the repository at this point in the history
[FIXED] simplified check for a single entry in AnimationPath's locations map
  • Loading branch information
robertosfield authored Sep 6, 2023
2 parents 0c00589 + cc7b8fa commit d771801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vsg/utils/AnimationPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ AnimationPath::Location AnimationPath::computeLocation(double time) const
if (locations.empty()) return {};

// check for single entry in locations map
if (locations.begin() == locations.rbegin().base()) return locations.begin()->second;
if (locations.size() == 1) return locations.begin()->second;

if (mode == REPEAT)
{
Expand Down

0 comments on commit d771801

Please sign in to comment.