]> git.mxchange.org Git - flightgear.git/commitdiff
minor progress bar fix
authormfranz <mfranz>
Thu, 6 Mar 2008 10:53:05 +0000 (10:53 +0000)
committermfranz <mfranz>
Thu, 6 Mar 2008 10:53:05 +0000 (10:53 +0000)
utils/Modeller/uv_pack.py

index 64508b49ed95d1d36b4fa554b45fe9980663cbbe..f9158b7240543108ccab502ce8db7c64a66a23f9 100644 (file)
@@ -107,12 +107,11 @@ def pack():
        xscale = (1.0 - 2.0 * margin[0]) / boxmax
        yscale = (1.0 - 2.0 * margin[1]) / boxmax
 
-       Blender.Window.DrawProgressBar(0.2, "Erasing texture")
        image.reload()
        #drawrect(0, 0, 1, 1) # erase texture
 
        for i, box in enumerate(boxes):
-               Blender.Window.DrawProgressBar(i * 0.8 / len(boxes), "Drawing")
+               Blender.Window.DrawProgressBar(float(i) * len(boxes), "Drawing")
                xmin = ymin = BIG
                xmax = ymax = -BIG
                for f in box[6].faces: