[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30867] branches/soc-2010-jwilkins/source/ blender/blenkernel/intern/brush.c: * Fix: inverted the f-key overlay to match the other overlays
Jason Wilkins
Jason.A.Wilkins at gmail.com
Thu Jul 29 08:37:37 CEST 2010
Revision: 30867
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30867
Author: jwilkins
Date: 2010-07-29 08:37:37 +0200 (Thu, 29 Jul 2010)
Log Message:
-----------
* Fix: inverted the f-key overlay to match the other overlays
Modified Paths:
--------------
branches/soc-2010-jwilkins/source/blender/blenkernel/intern/brush.c
Modified: branches/soc-2010-jwilkins/source/blender/blenkernel/intern/brush.c
===================================================================
--- branches/soc-2010-jwilkins/source/blender/blenkernel/intern/brush.c 2010-07-29 06:19:46 UTC (rev 30866)
+++ branches/soc-2010-jwilkins/source/blender/blenkernel/intern/brush.c 2010-07-29 06:37:37 UTC (rev 30867)
@@ -1221,6 +1221,14 @@
}
}
+ /* invert the texture */
+ for(i=0; i<side; ++i) {
+ for(j=0; j<side; ++j) {
+ if (sqrt(pow(i - half, 2) + pow(j - half, 2)) < half)
+ im->rect_float[i*side+j]= 1.0f - im->rect_float[i*side+j];
+ }
+ }
+
MEM_freeN(texcache);
}
More information about the Bf-blender-cvs
mailing list