mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
The rig types that expose the shared `bbones` parameter — limb, finger, tongue, skin chain and super chain — all define it as `default=10, min=1` with no maximum. B-Bone segments are hard-capped at 32 internally, so the UI accepted numbers that had no effect. This adds `max=32` to all five definitions, so the B-Bone Segments field reflects the real limit and every definition stays identical, keeping the shared parameter consistent. ### Behavior before this change A value above 32 is stored as-is in the metarig. At generation time Rigify assigns it to `Bone.bbone_segments`, whose RNA range is hard-capped at `[1, 32]`, so the assignment is silently clamped by RNA. Generation emits no warning, no error and does not abort: it reports success and the DEF bones end up with 32 segments, while the metarig parameter keeps the out-of-range value. ### Behavior after this change * **On file load:** nothing is clamped. The parameter is stored as an ID-property and RNA does not clamp on read, so a metarig saved with e.g. 100 still reads back 100, and the field shows that value until it is edited. * **On edit:** typing into the field, or assigning to it from a script, now clamps to 32 immediately, since `max=32` is enforced on write. * **On generation:** unchanged — the same silent clamp to 32, no warning, no error. Rigs generated from an existing metarig are therefore identical before and after this change. The only difference is that the UI no longer accepts a number that has no effect. Follow-up to the discussion in #161160. Pull Request: https://projects.blender.org/blender/blender/pulls/161401 |
||
|---|---|---|
| .. | ||
| basic_tongue.py | ||
| skin_eye.py | ||
| skin_jaw.py | ||