[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17205] trunk/blender/source/blender/ python/api2_2x: bpy access to image premul was missing.

Campbell Barton ideasman42 at gmail.com
Tue Oct 28 03:03:14 CET 2008


Revision: 17205
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17205
Author:   campbellbarton
Date:     2008-10-28 03:03:13 +0100 (Tue, 28 Oct 2008)

Log Message:
-----------
bpy access to image premul was missing.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Image.c
    trunk/blender/source/blender/python/api2_2x/doc/Image.py

Modified: trunk/blender/source/blender/python/api2_2x/Image.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Image.c	2008-10-28 00:01:20 UTC (rev 17204)
+++ trunk/blender/source/blender/python/api2_2x/Image.c	2008-10-28 02:03:13 UTC (rev 17205)
@@ -1380,6 +1380,8 @@
 	 "image odd fields toggle", (void *)IMA_STD_FIELD },
 	{"antialias", (getter)Image_getFlag, (setter)Image_setFlag,
 	 "image antialiasing toggle", (void *)IMA_ANTIALI },
+	{"premul", (getter)Image_getFlag, (setter)Image_setFlag,
+	 "image premultiply alpha toggle", (void *)IMA_DO_PREMUL },
 	{"reflect", (getter)Image_getFlag, (setter)Image_setFlag,
 	 "image reflect toggle", (void *)IMA_REFLECT },
 	{"clampX", (getter)Image_getFlagTpage, (setter)Image_setFlagTpage,

Modified: trunk/blender/source/blender/python/api2_2x/doc/Image.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Image.py	2008-10-28 00:01:20 UTC (rev 17204)
+++ trunk/blender/source/blender/python/api2_2x/doc/Image.py	2008-10-28 02:03:13 UTC (rev 17205)
@@ -107,6 +107,8 @@
 	@type fields_odd: boolean
 	@ivar antialias: enable or disable the antialias option for this image.
 	@type antialias: boolean
+	@ivar premul: premultiply alpha toggle.
+	@type premul: boolean
 	@ivar bindcode: Texture's bind code (readonly).
 	@type bindcode: int
 	@ivar source: Image source type.  See L{the Sources dictionary<Sources>} .





More information about the Bf-blender-cvs mailing list