[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11340] trunk/blender/source/blender/src/ transform.c: Partial fix for #6875 Normal aligned transform-constraining not working for bone scaling in pose mode

Martin Poirier theeth at yahoo.com
Mon Jul 23 03:34:08 CEST 2007


Revision: 11340
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11340
Author:   theeth
Date:     2007-07-23 03:34:07 +0200 (Mon, 23 Jul 2007)

Log Message:
-----------
Partial fix for #6875 Normal aligned transform-constraining not working for bone scaling in pose mode

Bone matrix wasn't being applied properly.

There's still a bug left with the translation part of the resize but that is a less frequent situation, so I'll commit this while I figure out a fix.

Modified Paths:
--------------
    trunk/blender/source/blender/src/transform.c

Modified: trunk/blender/source/blender/src/transform.c
===================================================================
--- trunk/blender/source/blender/src/transform.c	2007-07-23 01:12:07 UTC (rev 11339)
+++ trunk/blender/source/blender/src/transform.c	2007-07-23 01:34:07 UTC (rev 11340)
@@ -1506,7 +1506,7 @@
 	if (td->ext) {
 		float fsize[3];
 
-		if (t->flag & (T_OBJECT|T_TEXTURE)) {
+		if (t->flag & (T_OBJECT|T_TEXTURE|T_POSE)) {
 			float obsizemat[3][3];
 			// Reorient the size mat to fit the oriented object.
 			Mat3MulMat3(obsizemat, tmat, td->axismtx);
@@ -1520,7 +1520,7 @@
 		
 		protectedSizeBits(td->protectflag, fsize);
 		
-		if ((t->flag & T_V3D_ALIGN)==0) {	// align mode doesn't rotate objects itself
+		if ((t->flag & T_V3D_ALIGN)==0) {	// align mode doesn't resize objects itself
 			/* handle ipokeys? */
 			if(td->tdi) {
 				TransDataIpokey *tdi= td->tdi;
@@ -1726,6 +1726,7 @@
 
 		VecAddf(td->loc, t->center, vec);
 	}
+	
 
 	recalcData(t);
 





More information about the Bf-blender-cvs mailing list