View3D: Fix Empties displaying bounding boxes

This commit is contained in:
Clément Foucault 2019-03-11 14:02:58 +01:00
parent 729a1ab6a0
commit 0142c825b5
1 changed files with 4 additions and 1 deletions

View File

@ -3148,7 +3148,10 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
}
/* Don't draw bounding box again if draw type is bound box. */
if (ob->dtx & OB_DRAWBOUNDOX && ob->dt != OB_BOUNDBOX) {
if ((ob->type == OB_EMPTY) &&
(ob->dtx & OB_DRAWBOUNDOX) &&
(ob->dt != OB_BOUNDBOX))
{
DRW_shgroup_bounds(sgl, ob, theme_id);
}