From c71430d072c3f8fc637d888c703cd8115dbb9836 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Oct 2008 02:03:13 +0000 Subject: bpy access to image premul was missing. --- source/blender/python/api2_2x/Image.c | 2 ++ source/blender/python/api2_2x/doc/Image.py | 2 ++ 2 files changed, 4 insertions(+) (limited to 'source') diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 5ef2cbadbdc..dc15e008209 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -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, diff --git a/source/blender/python/api2_2x/doc/Image.py b/source/blender/python/api2_2x/doc/Image.py index 564cac3ef9b..e376b11c4fa 100644 --- a/source/blender/python/api2_2x/doc/Image.py +++ b/source/blender/python/api2_2x/doc/Image.py @@ -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} . -- cgit v1.2.3