svn merge ^/trunk/blender -r50091:50107
[blender.git] / source / blender / render / intern / source / initrender.c
index 9d2b68b77dbb3f433baa3bee6ea4f90e5cd3a6b3..66f230a40f5a7f462db9d3a5d9cd74cf8eaf3d0a 100644 (file)
@@ -610,8 +610,8 @@ void initparts(Render *re, int do_crop)
                }
                else disprect.ymax = ymaxb;
                
-               rectx = disprect.xmax - disprect.xmin;
-               recty = disprect.ymax - disprect.ymin;
+               rectx = BLI_RCT_SIZE_X(&disprect);
+               recty = BLI_RCT_SIZE_Y(&disprect);
                
                /* so, now can we add this part? */
                if (rectx > 0 && recty > 0) {