Commit: 7f442aa4b13ceefd55b6aed3346b4ad8bfec2c31
Author: Lukas Tönne
Date:   Thu Feb 26 15:50:39 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB7f442aa4b13ceefd55b6aed3346b4ad8bfec2c31

Removed remaining 1 frame difference in archive storage.

This was an artifact from the previous way of mapping non-0 start frame
to time 0.0. Now we start at times > 0.0 to match with the start frame.
Both ways are possible, can be changed later if needed.

===================================================================

M       source/blender/pointcache/alembic/abc_frame_mapper.cpp

===================================================================

diff --git a/source/blender/pointcache/alembic/abc_frame_mapper.cpp 
b/source/blender/pointcache/alembic/abc_frame_mapper.cpp
index 3788861..951e434 100644
--- a/source/blender/pointcache/alembic/abc_frame_mapper.cpp
+++ b/source/blender/pointcache/alembic/abc_frame_mapper.cpp
@@ -47,12 +47,12 @@ FrameMapper::FrameMapper(Scene *scene)
 
 chrono_t FrameMapper::frame_to_time(float frame) const
 {
-       return (double)(frame - 1.0f) * m_sec_per_frame;
+       return (double)frame * m_sec_per_frame;
 }
 
 float FrameMapper::time_to_frame(chrono_t time) const
 {
-       return (float)(time * m_frames_per_sec) + 1.0f;
+       return (float)(time * m_frames_per_sec);
 }
 
 #endif /* WITH_ALEMBIC */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to