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:
authorCampbell Barton <ideasman42@gmail.com>2014-08-26 03:18:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-26 03:18:54 +0400
commit679046743fd861c7406ed294cfa3a1d4f4873693 (patch)
treed3713627f773ed5505b5fa34d7c5ddf41cce385b /release/scripts
parentd822624adcaa04483cc7d694baa728a281de9b3d (diff)
Fix T41584: bpy.utils.time_from_frame out by a day
Fix from retroj
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/modules/bpy/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index 5621af29bc3..0867a4a7b6a 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):