[Bf-blender-cvs] [2855feb2ae0] master: Fix T61196: Mesh select ignores clipping (part 2)

Campbell Barton noreply at git.blender.org
Fri Feb 8 11:52:40 CET 2019


Commit: 2855feb2ae06cc8029ec7f459b32b9d37e8fff38
Author: Campbell Barton
Date:   Fri Feb 8 21:50:07 2019 +1100
Branches: master
https://developer.blender.org/rB2855feb2ae06cc8029ec7f459b32b9d37e8fff38

Fix T61196: Mesh select ignores clipping (part 2)

Need to use local clipping planes in this case

===================================================================

M	source/blender/editors/space_view3d/drawobject.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index e752d3a0343..2ece5358bc0 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -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) {



More information about the Bf-blender-cvs mailing list