Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-08 19:01:26 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:32:00 +0300
commit93260c2701f5b2831ac6e4c6ce222e26da60fcc8 (patch)
tree135aae4cb8eaeac4fa0d855f6c301e6630542cb7
parentfde7a05ca1d315f4fa0c6522b76a931e49846e58 (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.cc2
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;