diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-21 16:49:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-21 16:57:08 +0300 |
commit | 84b074baedd9d472ff2f52759b15f119de4f69c2 (patch) | |
tree | 21b4b9c5f1dbb56c47a5cab796207526e2eaaee8 /source/blender/blenkernel/intern/armature.c | |
parent | 0dbde559cfff511e75ab44e2c3d7efe8321dc309 (diff) |
Armature drawing: custom shape scale options
- Custom scale:
Avoids having multiple custom-shapes at different sizes.
- Option not to use bones length:
So changes in edit-mode don't resize the custom-shape.
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 29f2ad0d512..6afe7f1abe9 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -2229,7 +2229,7 @@ bool BKE_pose_minmax(Object *ob, float r_min[3], float r_max[3], bool use_hidden BKE_object_boundbox_get(pchan->custom) : NULL; if (bb_custom) { float mat[4][4], smat[4][4]; - scale_m4_fl(smat, pchan->bone->length); + scale_m4_fl(smat, PCHAN_CUSTOM_DRAW_SIZE(pchan)); mul_m4_series(mat, ob->obmat, pchan_tx->pose_mat, smat); BKE_boundbox_minmax(bb_custom, mat, r_min, r_max); } |