Small UI annoyance: proxy build progress could is incorrect in some cases
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Feb 2013 14:15:30 +0000 (14:15 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Feb 2013 14:15:30 +0000 (14:15 +0000)
source/blender/blenkernel/intern/sequencer.c

index 6f9299c..f1724bd 100644 (file)
@@ -1434,7 +1434,7 @@ void BKE_sequencer_proxy_rebuild(SeqIndexBuildContext *context, short *stop, sho
                        seq_proxy_build_frame(render_context, seq, cfra, 100);
                }
 
-               *progress = (float) cfra / (seq->enddisp - seq->endstill - seq->startdisp + seq->startstill);
+               *progress = (float) (cfra - seq->startdisp - seq->startstill) / (seq->enddisp - seq->endstill - seq->startdisp - seq->startstill);
                *do_update = TRUE;
 
                if (*stop || G.is_break)