[Bf-blender-cvs] [e36402e] BendyBones: Bendy Bones: Fix behaviour of scale in/out in editmode preview too

Joshua Leung noreply at git.blender.org
Tue May 17 16:40:40 CEST 2016


Commit: e36402ecff1bf0e2460f452bd2687ef8ab9c3e6e
Author: Joshua Leung
Date:   Sun May 15 12:54:25 2016 +1200
Branches: BendyBones
https://developer.blender.org/rBe36402ecff1bf0e2460f452bd2687ef8ab9c3e6e

Bendy Bones: Fix behaviour of scale in/out in editmode preview too

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

M	source/blender/editors/space_view3d/drawarmature.c

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

diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index fab6b08..4f0d277 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -1172,7 +1172,9 @@ static void ebone_spline_preview(EditBone *ebone, Mat4 result_array[MAX_BBONE_SU
 			size_to_mat4(bscalemat, bscale);
 			invert_m4_m4(ibscalemat, bscalemat);
 			
-			mul_m4_series(result_array[a].mat, ibscalemat, result_array[a].mat, bscalemat);
+			/* Note: don't multiply by inverse scale mat here, as it causes problems with scaling shearing and breaking segment chains */
+			/*mul_m4_series(result_array[a].mat, ibscalemat, result_array[a].mat, bscalemat);*/
+			mul_m4_series(result_array[a].mat, result_array[a].mat, bscalemat);
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list