mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
Enhanced ShapeRule type to carry more information and to be easier to use
This commit is contained in:
@@ -23,7 +23,7 @@ ContinuousTimeline<ShapeRule> convertToTargetShapeSet(const ContinuousTimeline<S
|
||||
ContinuousTimeline<ShapeRule> result(shapeRules);
|
||||
for (const auto& timedShapeRule : shapeRules) {
|
||||
ShapeRule rule = timedShapeRule.getValue();
|
||||
std::get<ShapeSet>(rule) = convertToTargetShapeSet(std::get<ShapeSet>(rule), targetShapeSet);
|
||||
rule.shapeSet = convertToTargetShapeSet(rule.shapeSet, targetShapeSet);
|
||||
result.set(timedShapeRule.getTimeRange(), rule);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user