diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index cd64c080e78..73257826e07 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1987,7 +1987,7 @@ void DRW_render_instance_buffer_finish(void) void DRW_draw_select_loop( struct Depsgraph *depsgraph, ARegion *ar, View3D *v3d, - bool UNUSED(use_obedit_skip), bool UNUSED(use_nearest), const rcti *rect, + bool UNUSED(use_obedit_skip), bool draw_surface, bool UNUSED(use_nearest), const rcti *rect, DRW_SelectPassFn select_pass_fn, void *select_pass_user_data, DRW_ObjectFilterFn object_filter_fn, void *object_filter_user_data) { @@ -2037,6 +2037,10 @@ void DRW_draw_select_loop( drw_engines_enable_from_paint_mode(obedit_mode); drw_engines_enable_from_mode(obedit_mode); } + else if (!draw_surface) { + drw_engines_enable_from_overlays(v3d->overlay.flag); + drw_engines_enable_from_object_mode(); + } else { drw_engines_enable_basic(); drw_engines_enable_from_object_mode(); |