From 8fd78d63cf627ad09c294fbe6b83f2cdae32f9de Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Thu, 11 Aug 2016 16:03:24 +0200 Subject: [PATCH] Animating pauses only between words, not at start or end of recording --- src/mouthAnimation.cpp | 1 + 1 file changed, 1 insertion(+) 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();