[Bf-blender-cvs] [9c4ecef62f7] master: Fix T88375: Bone Size Small After V3D.View_All

Wayde Moss noreply at git.blender.org
Fri May 21 19:35:39 CEST 2021


Commit: 9c4ecef62f783156ab01904a6ead6b6eac23e7bf
Author: Wayde Moss
Date:   Fri May 21 13:22:28 2021 -0400
Branches: master
https://developer.blender.org/rB9c4ecef62f783156ab01904a6ead6b6eac23e7bf

Fix T88375: Bone Size Small After V3D.View_All

The wrong matrix function was used and overwrote the custom bone shape
scale instead of reading from it.

Reviewed By: sybren

Differential Revision: https://developer.blender.org/D11330

===================================================================

M	source/blender/blenkernel/intern/armature.c

===================================================================

diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index f67c2cb4372..4ea71922df5 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -2882,7 +2882,7 @@ bool BKE_pose_minmax(Object *ob, float r_min[3], float r_max[3], bool use_hidden
         if (bb_custom) {
           float mat[4][4], smat[4][4];
           scale_m4_fl(smat, PCHAN_CUSTOM_BONE_LENGTH(pchan));
-          mul_m4_v3(smat, pchan->custom_scale_xyz);
+          rescale_m4(smat, pchan->custom_scale_xyz);
           mul_m4_series(mat, ob->obmat, pchan_tx->pose_mat, smat);
           BKE_boundbox_minmax(bb_custom, mat, r_min, r_max);
         }



More information about the Bf-blender-cvs mailing list