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.
Differential D1444
fix for T45644 Authored by Campbell Barton (campbellbarton) on Aug 2 2015, 1:24 PM. Tags None Subscribers None
Details
this should fix T45644: bpy.utils.smpte_from_frame drops frames was precission issue in logic of current code, afaics.
Diff Detail Event TimelineComment Actions 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' |