[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11283] branches/2-44-stable/blender/ source/blender/python/api2_2x: missing colorband reference in docs, changed numbut precission from the python api
Campbell Barton
cbarton at metavr.com
Sun Jul 15 21:33:05 CEST 2007
Revision: 11283
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11283
Author: campbellbarton
Date: 2007-07-15 21:33:04 +0200 (Sun, 15 Jul 2007)
Log Message:
-----------
missing colorband reference in docs, changed numbut precission from the python api
Modified Paths:
--------------
branches/2-44-stable/blender/source/blender/python/api2_2x/Draw.c
branches/2-44-stable/blender/source/blender/python/api2_2x/doc/Texture.py
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Draw.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Draw.c 2007-07-15 19:31:45 UTC (rev 11282)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Draw.c 2007-07-15 19:33:04 UTC (rev 11283)
@@ -1491,9 +1491,9 @@
if (!range) range= 1.0f; /* avoid any odd errors */
/* set the precission to display*/
- if (range>=100.0f) precission=1.0f;
- else if (range>=10.0f) precission=2.0f;
- else if (range>=1.0f) precission=3.0f;
+ if (range>=1000.0f) precission=1.0f;
+ else if (range>=100.0f) precission=2.0f;
+ else if (range>=10.0f) precission=3.0f;
else precission=4.0f;
but->type = BFLOAT_TYPE;
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/doc/Texture.py
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/doc/Texture.py 2007-07-15 19:31:45 UTC (rev 11282)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/doc/Texture.py 2007-07-15 19:33:04 UTC (rev 11283)
@@ -59,6 +59,7 @@
- NEGALPHA - Reverse the alpha value
- CHECKER_ODD - Fill the "odd" checkerboard tiles
- CHECKER_EVEN - Fill the "even" checkerboard tiles
+ - COLORBAND - Enable colorband for this texture
@type ImageFlags: readonly dictionary
@var ImageFlags: The available image flags for Texture.imageFlags:
More information about the Bf-blender-cvs
mailing list