Commit: 679046743fd861c7406ed294cfa3a1d4f4873693
Author: Campbell Barton
Date:   Tue Aug 26 09:18:54 2014 +1000
Branches: master
https://developer.blender.org/rB679046743fd861c7406ed294cfa3a1d4f4873693

Fix T41584: bpy.utils.time_from_frame out by a day

Fix from retroj

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

M       release/scripts/modules/bpy/utils.py

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

diff --git a/release/scripts/modules/bpy/utils.py 
b/release/scripts/modules/bpy/utils.py
index 5621af2..0867a4a 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -440,7 +440,7 @@ def time_from_frame(frame, fps=None, fps_base=None):
 
     from datetime import timedelta
 
-    return timedelta((frame * fps_base) / fps)
+    return timedelta(0, (frame * fps_base) / fps)
 
 
 def time_to_frame(time, fps=None, fps_base=None):

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

Reply via email to