Skip to content

Commit

Permalink
Yea turns out this was just incomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterpicker committed Oct 16, 2023
1 parent 3fc138c commit 604e344
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ private double findLastKeyTime() {
var duration = 0d;

for (var value : this.animationNodes) {
if (value != null)
if (value != null) {
for (var key : value.positionKeys) duration = Math.max(key.time(), duration);
for (var key : value.rotationKeys) duration = Math.max(key.time(), duration);
for (var key : value.scaleKeys) duration = Math.max(key.time(), duration);
}
}

return duration;
Expand Down

0 comments on commit 604e344

Please sign in to comment.