DrawManager: Fix Camera Images Interfere During Selection

When drawing the selection buffer the camera images were drawn. This
resulted in unneeded extra clicking for the user. This change will
ignore camera images during the selection.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D5276
This commit is contained in:
Jeroen Bakker 2019-07-17 12:07:09 +02:00
parent 972c05537d
commit 694f9cb18c
1 changed files with 4 additions and 0 deletions

View File

@ -1115,6 +1115,10 @@ static void DRW_shgroup_camera_background_images(OBJECT_Shaders *sh_data,
Object *ob,
RegionView3D *rv3d)
{
if (DRW_state_is_select()) {
return;
}
if (!BKE_object_empty_image_frame_is_visible_in_view3d(ob, rv3d)) {
return;
}