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
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-08 19:01:26 +0300
commitc0a9ec222f3ef087345de75038d53c2cd600b378 (patch)
tree3d01f34a0c7aa280fe2dcac98030c2fdbd1bdcee
parentf3a475a76721a8333396ce1801124a15278b4d1f (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;