[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29147] branches/soc-2010-jwilkins/source/ blender/makesdna/DNA_brush_types.h: note a short cannot hold a int worth of data and the numbers that are too big will apparently be truncated to the largest number the variable can hold so 131072 and 65536 look like 32768 to a short

Tom Musgrove LetterRip at gmail.com
Wed Jun 2 04:26:57 CEST 2010


Revision: 29147
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29147
Author:   letterrip
Date:     2010-06-02 04:26:53 +0200 (Wed, 02 Jun 2010)

Log Message:
-----------
note a short cannot hold a int worth of data and the numbers that are too big will apparently be truncated to the largest number the variable can hold so 131072 and 65536 look like 32768 to a short

Modified Paths:
--------------
    branches/soc-2010-jwilkins/source/blender/makesdna/DNA_brush_types.h

Modified: branches/soc-2010-jwilkins/source/blender/makesdna/DNA_brush_types.h
===================================================================
--- branches/soc-2010-jwilkins/source/blender/makesdna/DNA_brush_types.h	2010-06-01 23:23:01 UTC (rev 29146)
+++ branches/soc-2010-jwilkins/source/blender/makesdna/DNA_brush_types.h	2010-06-02 02:26:53 UTC (rev 29147)
@@ -54,9 +54,10 @@
 	struct CurveMapping *curve;	/* falloff curve */
 	struct MTex mtex;
 	
-	short flag, blend;			/* general purpose flag, blend mode */
+	short blend, pad;			/* blend mode */
 	int size;					/* brush diameter */
-	float detail,pad;			/* dynamic subdivission detail */
+	int flag;					/* general purpose flag */
+	float detail;			/* dynamic subdivission detail */
 	float jitter;				/* jitter the position of the brush */
 	float spacing;				/* spacing of paint operations */
 	int smooth_stroke_radius;		/* turning radius (in pixels) for smooth stroke */





More information about the Bf-blender-cvs mailing list