Alembic: fix clamping of frame offset during exports

The `frame_offset` used for creating `TimeSamplings` when exporting was
being clamped, which would make subframe sampling potentially fail, or
get out of sync.
This commit is contained in:
Kévin Dietrich
2022-04-08 18:01:26 +02:00
parent f3a475a767
commit c0a9ec222f

View File

@@ -103,7 +103,7 @@ static void get_shutter_samples(double scene_fps,
bool time_relative,
std::vector<double> &r_samples)
{
int frame_offset = time_relative ? params.frame_start : 0;
double frame_offset = time_relative ? params.frame_start : 0.0;
double time_factor = time_relative ? scene_fps : 1.0;
double shutter_open = params.shutter_open;
double shutter_close = params.shutter_close;