bpy access to image premul was missing.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 28 Oct 2008 02:03:13 +0000 (02:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 28 Oct 2008 02:03:13 +0000 (02:03 +0000)
source/blender/python/api2_2x/Image.c
source/blender/python/api2_2x/doc/Image.py

index 5ef2cbadbdc88fb9a2b32484410c130cfee6755c..dc15e0082092febda4be04e8f8b3742c7d7ca3d4 100644 (file)
@@ -1380,6 +1380,8 @@ static PyGetSetDef BPy_Image_getseters[] = {
         "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,
index 564cac3ef9bc3edeca2e7aa619c209ca8d6eaa1c..e376b11c4fa60d3b94f3b0aef27e85d47babda2d 100644 (file)
@@ -107,6 +107,8 @@ class Image:
        @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>} .