[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12185] trunk/blender/source/blender/src/ transform.c: Bone/Envelope Size Bugfix:

Joshua Leung aligorith at gmail.com
Tue Oct 2 08:30:34 CEST 2007


Revision: 12185
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12185
Author:   aligorith
Date:     2007-10-02 08:30:33 +0200 (Tue, 02 Oct 2007)

Log Message:
-----------
Bone/Envelope Size Bugfix:

When in envelope draw-mode for an armature, it would not be possible to change the envelope distance of a bone using Alt-S if the distance was 0. 

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-10-02 00:43:35 UTC (rev 12184)
+++ trunk/blender/source/blender/src/transform.c	2007-10-02 06:30:33 UTC (rev 12185)
@@ -3054,7 +3054,13 @@
 		if (td->flag & TD_NOACTION)
 			break;
 		
-		if(td->val) *td->val= td->ival*ratio;
+		if (td->val) {
+			/* if the old/original value was 0.0f, then just use ratio */
+			if (td->ival)
+				*td->val= td->ival*ratio;
+			else
+				*td->val= ratio;
+		}
 	}
 	
 	recalcData(t);





More information about the Bf-blender-cvs mailing list