Proxies building progress bar used to be displayed wrong in cases
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 25 Jul 2012 15:05:50 +0000 (15:05 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 25 Jul 2012 15:05:50 +0000 (15:05 +0000)
when start scene frame is not 1.

source/blender/editors/space_clip/clip_ops.c

index 86d74ef4c78187935e283bc72336176d358bee62..ee799566970956b3f5bd335565e96e65cb8a72da 100644 (file)
@@ -992,7 +992,7 @@ static void proxy_startjob(void *pjv, short *stop, short *do_update, float *prog
                        break;
 
                *do_update = TRUE;
-               *progress = ((float) cfra) / (efra - sfra);
+               *progress = ((float) cfra - sfra) / (efra - sfra);
        }
 
        if (distortion)