Fix rotate around point under cursor 'seeing' hidden faces in paint modes.

This commit is contained in:
Alexander Gavrilov 2018-11-29 14:24:30 +03:00
parent fbb19bcaf9
commit 28d2058e2c
1 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,10 @@ static void basic_cache_populate(void *vedata, Object *ob)
}
}
struct GPUBatch *geom = DRW_cache_object_surface_get(ob);
const bool is_active = (ob == draw_ctx->obact);
const bool use_hide = is_active && DRW_object_use_hide_faces(ob);
struct GPUBatch *geom = DRW_cache_object_surface_get_ex(ob, use_hide);
if (geom) {
const bool do_cull = (draw_ctx->v3d && (draw_ctx->v3d->flag2 & V3D_BACKFACE_CULLING));
/* Depth Prepass */