DRW: Fix assert with BoundBox object display mode

This commit is contained in:
Clément Foucault 2018-10-16 22:52:00 +02:00
parent 28a3958cb3
commit 2ab6272233
1 changed files with 2 additions and 1 deletions

View File

@ -2812,7 +2812,8 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
DRW_shgroup_relationship_lines(sgl, draw_ctx->depsgraph, scene, ob);
}
if ((ob->dtx != 0) && theme_id == TH_UNDEFINED) {
const bool draw_extra = (ob->dtx != 0 || ob->dt == OB_BOUNDBOX);
if (draw_extra && (theme_id == TH_UNDEFINED)) {
theme_id = DRW_object_wire_theme_get(ob, view_layer, NULL);
}