[Bf-blender-cvs] [56fe8239abe] master: Fix T70320: View clipping doesn't hide extra wireframe
Campbell Barton
noreply at git.blender.org
Sun Sep 29 20:52:11 CEST 2019
Commit: 56fe8239abea80c8a9ab8e86f7dd5616ca78d18c
Author: Campbell Barton
Date: Mon Sep 30 04:45:39 2019 +1000
Branches: master
https://developer.blender.org/rB56fe8239abea80c8a9ab8e86f7dd5616ca78d18c
Fix T70320: View clipping doesn't hide extra wireframe
===================================================================
M source/blender/draw/modes/overlay_mode.c
===================================================================
diff --git a/source/blender/draw/modes/overlay_mode.c b/source/blender/draw/modes/overlay_mode.c
index 587046589ee..9106e89663d 100644
--- a/source/blender/draw/modes/overlay_mode.c
+++ b/source/blender/draw/modes/overlay_mode.c
@@ -239,11 +239,6 @@ static void overlay_cache_init(void *vedata)
geometry_shader_uniforms(g_data->face_wires_shgrp);
geometry_shader_uniforms(g_data->face_wires_xray_shgrp);
}
- if (rv3d->rflag & RV3D_CLIPPING) {
- DRW_shgroup_state_enable(g_data->face_wires_shgrp, DRW_STATE_CLIP_PLANES);
- DRW_shgroup_state_enable(g_data->face_wires_xray_shgrp, DRW_STATE_CLIP_PLANES);
- }
-
g_data->wire_step_param = stl->g_data->overlay.wireframe_threshold - 254.0f / 255.0f;
}
}
@@ -414,6 +409,10 @@ static void overlay_cache_populate(void *vedata, Object *ob)
shgrp = DRW_shgroup_create_sub(pd->face_wires_shgrp);
}
+ if (draw_ctx->rv3d->rflag & RV3D_CLIPPING) {
+ DRW_shgroup_state_enable(shgrp, DRW_STATE_CLIP_PLANES);
+ }
+
float wire_step_param = 10.0f;
if (!use_sculpt_pbvh) {
wire_step_param = (all_wires) ? 1.0f : pd->wire_step_param;
More information about the Bf-blender-cvs
mailing list