[Bf-blender-cvs] [650cdf6] BendyBones: Bendy Bones: Tweak to try and get rid of shearing issues when scaling bones

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


Commit: 650cdf6c36b07b367a14c672b94340fb6cc65832
Author: Joshua Leung
Date:   Sun May 15 03:39:13 2016 +1200
Branches: BendyBones
https://developer.blender.org/rB650cdf6c36b07b367a14c672b94340fb6cc65832

Bendy Bones: Tweak to try and get rid of shearing issues when scaling bones

Looks like we shouldn't be applying the inverse matrix here...

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

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

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

diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 93f2295..048b861 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -671,7 +671,9 @@ void b_bone_spline_setup(bPoseChannel *pchan, int rest, Mat4 result_array[MAX_BB
 			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