Fix T61196: Mesh select ignores clipping (part 2)

Need to use local clipping planes in this case
This commit is contained in:
Campbell Barton 2019-02-08 21:50:07 +11:00
parent 0e3475b00d
commit 2855feb2ae
Notes: blender-bot 2023-02-14 03:50:30 +01:00
Referenced by issue #61196, clipping border allows selection of clipped vertices when x-ray mode is disabled
1 changed files with 2 additions and 1 deletions

View File

@ -294,7 +294,8 @@ void draw_object_backbufsel(
const float (*world_clip_planes)[4] = NULL;
if (rv3d->rflag & RV3D_CLIPPING) {
world_clip_planes = rv3d->clip;
ED_view3d_clipping_local(rv3d, ob->obmat);
world_clip_planes = rv3d->clip_local;
}
switch (ob->type) {