diff options
author | Campbell Barton <campbell@blender.org> | 2022-02-08 14:16:51 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-02-08 14:16:51 +0300 |
commit | 3267c91b4d5caab7da8aef071a446dd2e86f86a9 (patch) | |
tree | 5a8a35d680c6fb16df9261b321a5ae1792c209e2 /source/blender/gpu/shaders | |
parent | 530be35516dd5850ee920df0b9cd8b8118ce7f8e (diff) |
Fix T91253: Slow pose bone selection with many bones
Viewport cull bones during selection to avoid depth-picking
reading the depth buffer for bones that aren't in the viewport.
Files with thousands of bones could hang blender for seconds while
selecting. The issue could still happen with overlapping bones or when
zoomed out so all bones are under the cursor, however in practice this
rarely happens.
Now files with many bones select quickly.
Related changes include:
- Split `BKE_pchan_minmax` out of `BKE_pose_minmax`.
- Add `mat3_to_size_max_axis` to return the length of the largest
axis (used for scaling the radius).
Reviewed By: sybren
Maniphest Tasks: T91253
Ref D13990
Diffstat (limited to 'source/blender/gpu/shaders')
0 files changed, 0 insertions, 0 deletions