stories.json now encodes the duration for a transform so that the time code of the event isn't also controlling the time that the transform runs.
This commit is contained in:
parent
088f9e022e
commit
0fefc83c36
4 changed files with 17 additions and 17 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "config.hpp"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace cinematic {
|
||||
using animate2::Animate2, std::string, std::min, std::clamp;
|
||||
|
|
@ -120,8 +121,8 @@ namespace cinematic {
|
|||
anim.sequences.clear();
|
||||
anim.forms.clear();
|
||||
|
||||
for(auto& [timecode, cell, transform] : story.beats) {
|
||||
animate2::Sequence seq{.frames={0}, .durations={60}};
|
||||
for(auto& [timecode, cell, transform, duration] : story.beats) {
|
||||
animate2::Sequence seq{.frames={0}, .durations={std::stoi(duration)}};
|
||||
anim.sequences.try_emplace(timecode, seq);
|
||||
|
||||
animate2::Form form{timecode, transform};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue