Refactor view3d offscreen drawing to avoid having multiple boolean arguments
[blender-staging.git] / source / blender / windowmanager / intern / wm_files.c
index 2f6b18cfd3c3d207cd9b133fbfe48e366a8a06c2..57f4219f23f027ff48a1fab2920b4b23f9816bdc 100644 (file)
@@ -1029,14 +1029,14 @@ static ImBuf *blend_file_thumb(Scene *scene, bScreen *screen, BlendThumbnail **t
                ibuf = ED_view3d_draw_offscreen_imbuf_simple(
                        scene, scene->camera,
                        BLEN_THUMB_SIZE * 2, BLEN_THUMB_SIZE * 2,
-                       IB_rect, OB_SOLID, false, false, false, R_ALPHAPREMUL, 0, false, NULL,
+                       IB_rect, OB_SOLID, V3D_OFSDRAW_NONE, R_ALPHAPREMUL, 0, NULL,
                        NULL, NULL, err_out);
        }
        else {
                ibuf = ED_view3d_draw_offscreen_imbuf(
                        scene, v3d, ar,
                        BLEN_THUMB_SIZE * 2, BLEN_THUMB_SIZE * 2,
-                       IB_rect, false, R_ALPHAPREMUL, 0, false, NULL,
+                       IB_rect, V3D_OFSDRAW_NONE, R_ALPHAPREMUL, 0, NULL,
                        NULL, NULL, err_out);
        }