Animating pauses only between words, not at start or end of recording
This commit is contained in:
parent
a632e7a3b3
commit
8fd78d63cf
|
@ -176,6 +176,7 @@ Timeline<Shape> animatePauses(const ContinuousTimeline<Shape>& shapes) {
|
||||||
// Don't close mouth for short pauses
|
// Don't close mouth for short pauses
|
||||||
for (const auto& timedShape : shapes) {
|
for (const auto& timedShape : shapes) {
|
||||||
if (timedShape.getValue() != X) continue;
|
if (timedShape.getValue() != X) continue;
|
||||||
|
if (timedShape.getStart() == 0_cs || timedShape.getEnd() == shapes.getRange().getEnd()) continue;
|
||||||
|
|
||||||
const centiseconds maxPausedOpenMouthDuration = 35_cs;
|
const centiseconds maxPausedOpenMouthDuration = 35_cs;
|
||||||
const TimeRange timeRange = timedShape.getTimeRange();
|
const TimeRange timeRange = timedShape.getTimeRange();
|
||||||
|
|
Loading…
Reference in New Issue