Skip to content

Commit

Permalink
[FIXED] invalid check for a single entry in AnimationPath's locations…
Browse files Browse the repository at this point in the history
… map
  • Loading branch information
lufriem committed Sep 5, 2023
1 parent 62b2e8e commit cc7b8fa
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 cc7b8fa

Please sign in to comment.