Commit: 0142c825b59d65a8ea74d56b37391e12149b6638
Author: Clément Foucault
Date: Mon Mar 11 14:02:58 2019 +0100
Branches: master
https://developer.blender.org/rB0142c825b59d65a8ea74d56b37391e12149b6638
View3D: Fix Empties displaying bounding boxes
===================================================================
M source/blender/draw/modes/object_mode.c
===================================================================
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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs