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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user