Object Mode: Add to EvaluationContext & DRWContextState
[blender.git] / source / blender / editors / space_view3d / view3d_view.c
index 0597f2806b38150d1dbd98ac62db7895893ccdc7..779c2cc53d428b15b38103f99bfe5c84a3693685 100644 (file)
@@ -954,7 +954,9 @@ int view3d_opengl_select(
        else
 #else
        {
-               DRW_draw_select_loop(graph, ar, v3d, use_obedit_skip, use_nearest, &rect);
+               DRW_draw_select_loop(
+                       graph, ar, v3d, eval_ctx->object_mode,
+                       use_obedit_skip, use_nearest, &rect);
        }
 #endif /* WITH_OPENGL_LEGACY */
 
@@ -971,7 +973,9 @@ int view3d_opengl_select(
                else
 #else
                {
-                       DRW_draw_select_loop(graph, ar, v3d, use_obedit_skip, use_nearest, &rect);
+                       DRW_draw_select_loop(
+                               graph, ar, v3d, eval_ctx->object_mode,
+                               use_obedit_skip, use_nearest, &rect);
                }
 #endif /* WITH_OPENGL_LEGACY */