Page MenuHome

fix for T45644
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Aug 2 2015, 1:24 PM.

Details

Summary

this should fix T45644: bpy.utils.smpte_from_frame drops frames

was precission issue in logic of current code, afaics.
Shuffled this around a bit and moved main logic to smpte_from_frame.

Diff Detail

Event Timeline

Campbell Barton (campbellbarton) requested changes to this revision.EditedAug 3 2015, 5:39 AM
Campbell Barton (campbellbarton) edited edge metadata.

This gives some odd behavior with negative values.

With patch:

>>> bpy.utils.smpte_from_frame(-545454544)
'--6313:52:07:08'

>>> bpy.utils.smpte_from_frame(-54544)
'-00:22:07:08'

Master:

>>> bpy.utils.smpte_from_frame(-545454544)
'-6313:07:52:16'

>>> bpy.utils.smpte_from_frame(-54544)
'-00:37:52:15'
This revision now requires changes to proceed.Aug 3 2015, 5:39 AM