Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-03-11 16:02:58 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-03-11 16:03:31 +0300
commit0142c825b59d65a8ea74d56b37391e12149b6638 (patch)
tree5870cb1042978fb4e7cb2b4456b148716f096fbe /source/blender/draw/modes
parent729a1ab6a0f1f7631a1f1bdb03289a715aa61f72 (diff)
View3D: Fix Empties displaying bounding boxes
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r--source/blender/draw/modes/object_mode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index f68be196f0e..e2599d424bb 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -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);
}