diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-08 19:01:26 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2022-04-11 01:32:00 +0300 |
commit | 93260c2701f5b2831ac6e4c6ce222e26da60fcc8 (patch) | |
tree | 135aae4cb8eaeac4fa0d855f6c301e6630542cb7 | |
parent | fde7a05ca1d315f4fa0c6522b76a931e49846e58 (diff) |
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.
-rw-r--r-- | source/blender/io/alembic/exporter/abc_archive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/alembic/exporter/abc_archive.cc b/source/blender/io/alembic/exporter/abc_archive.cc index 5eea729841e..9c8a36958d5 100644 --- a/source/blender/io/alembic/exporter/abc_archive.cc +++ b/source/blender/io/alembic/exporter/abc_archive.cc @@ -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; |