From 34c701abbdbfa6143c11e1b6f8d7797257c70237 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Jul 2022 14:57:43 +1000 Subject: Fix T99270: bones using empties as custom shapes can't be selected Regression in [0] which didn't account for the bounds of empty objects. Add support support calculating bounds from empty draw-type to use in pose-bone culling. [0]: 3267c91b4d5caab7da8aef071a446dd2e86f86a9 --- source/blender/blenkernel/BKE_armature.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenkernel/BKE_armature.h') diff --git a/source/blender/blenkernel/BKE_armature.h b/source/blender/blenkernel/BKE_armature.h index 888de38dcc7..98f9f8e3588 100644 --- a/source/blender/blenkernel/BKE_armature.h +++ b/source/blender/blenkernel/BKE_armature.h @@ -158,9 +158,13 @@ struct BoundBox *BKE_armature_boundbox_get(struct Object *ob); * or the custom object's bounds (if the bone uses a custom object). * Visual elements such as the envelopes radius & bendy-bone spline segments are *not* included, * making this not so useful for viewport culling. + * + * \param use_empty_drawtype: When enabled, the draw type of empty custom-objects is tagen into + * account when calculating the bounds. */ void BKE_pchan_minmax(const struct Object *ob, const struct bPoseChannel *pchan, + const bool use_empty_drawtype, float r_min[3], float r_max[3]); /** -- cgit v1.2.3