Fix T96378: B-Bone selection fails in pose-mode

Regression in 3267c91b4d.
This commit is contained in:
Campbell Barton 2022-03-14 20:10:24 +11:00
parent d7dd7403a8
commit b3d0abd893
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue #96378, Selection of Bones is broken/very difficult, on moved objects Displayed As B-Bone
1 changed files with 1 additions and 1 deletions

View File

@ -2123,7 +2123,7 @@ static bool pchan_culling_test_bbone(const DRWView *view,
BoundSphere bsphere;
float size[3];
mat4_to_size(size, bbones_mat->mat);
copy_v3_v3(bsphere.center, bbones_mat->mat[3]);
mul_v3_m4v3(bsphere.center, ob->obmat, bbones_mat->mat[3]);
bsphere.radius = len_v3(size) * ob_scale;
if (DRW_culling_sphere_test(view, &bsphere)) {
return true;