[Bf-committers] fix for #1145

Nathan Letwory bf-committers@blender.org
Sun, 11 Apr 2004 02:52:02 +0300


This is a multi-part message in MIME format.

--Boundary_(ID_gEmzzMAxc7fMp42Af+MHiQ)
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT

Patch attached for #1145 where clicking on arrow buttons didn't work:

For the arrows to work a factor for stepping needs to be passed (was 0, 
so effectively no stepping).

(http://projects.blender.org/tracker/index.php?func=detail&aid=1145&group_id=9&atid=125)

/jesterKing

--Boundary_(ID_gEmzzMAxc7fMp42Af+MHiQ)
Content-type: text/plain; name=fix1145.patch
Content-transfer-encoding: 7BIT
Content-disposition: inline; filename=fix1145.patch

Index: source/blender/src/toolbox.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/toolbox.c,v
retrieving revision 1.48
diff -u -r1.48 toolbox.c
--- source/blender/src/toolbox.c	6 Apr 2004 15:16:06 -0000	1.48
+++ source/blender/src/toolbox.c	10 Apr 2004 23:50:43 -0000
@@ -1191,7 +1191,7 @@
 	x1=mval[0]-150; 
 	y1=mval[1]-20; 
 	
-	uiDefButF(block, NUM, 0, str,(short)(x1+5),(short)(y1+10),125,20, var, min, max, 0, 0, "");
+	uiDefButF(block, NUM, 0, str,(short)(x1+5),(short)(y1+10),125,20, var, min, max, 10, 3, "");
 	uiDefBut(block, BUT, 1, "OK",(short)(x1+136),(short)(y1+10), 35, 20, NULL, 0, 0, 0, 0, "");
 
 	uiBoundsBlock(block, 2);

--Boundary_(ID_gEmzzMAxc7fMp42Af+MHiQ)--