Fix T61196: Mesh select ignores clipping (part 2)
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Feb 2019 10:50:07 +0000 (21:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Feb 2019 10:52:01 +0000 (21:52 +1100)
Need to use local clipping planes in this case

source/blender/editors/space_view3d/drawobject.c

index e752d3a034379d30b9f8539c9b7705d6db142a8c..2ece5358bc0fcc88fbdfdeb03f8d2cbe91c58c28 100644 (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) {