diff --git a/src/mouthAnimation.cpp b/src/mouthAnimation.cpp index cd5d83b..e7b6114 100644 --- a/src/mouthAnimation.cpp +++ b/src/mouthAnimation.cpp @@ -176,6 +176,7 @@ Timeline animatePauses(const ContinuousTimeline& shapes) { // Don't close mouth for short pauses for (const auto& timedShape : shapes) { if (timedShape.getValue() != X) continue; + if (timedShape.getStart() == 0_cs || timedShape.getEnd() == shapes.getRange().getEnd()) continue; const centiseconds maxPausedOpenMouthDuration = 35_cs; const TimeRange timeRange = timedShape.getTimeRange();