diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-14 12:10:24 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-14 12:10:24 +0300 |
commit | b3d0abd89350fd5ba99ebac47986f2ab343947a1 (patch) | |
tree | 5114a9c45cd712e189aac1b5fc5680bc95854217 /source/blender/draw/engines/overlay | |
parent | d7dd7403a8137e1043df4443898a677291726f0e (diff) |
Fix T96378: B-Bone selection fails in pose-mode
Regression in 3267c91b4d5caab7da8aef071a446dd2e86f86a9.
Diffstat (limited to 'source/blender/draw/engines/overlay')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_armature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_armature.c b/source/blender/draw/engines/overlay/overlay_armature.c index 10d48a871d3..a2f9ad0d369 100644 --- a/source/blender/draw/engines/overlay/overlay_armature.c +++ b/source/blender/draw/engines/overlay/overlay_armature.c @@ -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; |