Commit: 0706b908db400fddc2e653aa9e640c65c6b8a732 Author: Sybren A. Stüvel Date: Thu Apr 13 14:50:02 2017 +0200 Branches: master https://developer.blender.org/rB0706b908db400fddc2e653aa9e640c65c6b8a732
Alembic import: fixed off-by-one error in start/end frame static_cast<int> truncates, so a computed end frame of 99.999999999998 would result in 99, instead of the correct 100. =================================================================== M source/blender/alembic/intern/alembic_capi.cc =================================================================== diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc index 9529b370928..0de0d1a1ab6 100644 --- a/source/blender/alembic/intern/alembic_capi.cc +++ b/source/blender/alembic/intern/alembic_capi.cc @@ -717,8 +717,8 @@ static void import_startjob(void *user_data, short *stop, short *do_update, floa CFRA = SFRA; } else if (min_time < max_time) { - SFRA = static_cast<int>(min_time * FPS); - EFRA = static_cast<int>(max_time * FPS); + SFRA = static_cast<int>(round(min_time * FPS)); + EFRA = static_cast<int>(round(max_time * FPS)); CFRA = SFRA; } } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs