Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuho Vepsalainen <bebraw@gmail.com>2007-05-03 19:10:44 +0400
committerJuho Vepsalainen <bebraw@gmail.com>2007-05-03 19:10:44 +0400
commitc71949419ed68ef1026b4ac7ac391a51ce055ae8 (patch)
tree910871aaad78fc88a53fb2213dbcc58f2a49522c /source/blender/python/api2_2x/bpy_data.c
parent7c5c0db23dc6b35d3e26129b2fc1764c859b80b4 (diff)
== UV/Image Editor ==
Patch #6570. This patch adds color and alpha selectors to Image -> "New..." dialog.
Diffstat (limited to 'source/blender/python/api2_2x/bpy_data.c')
-rw-r--r--source/blender/python/api2_2x/bpy_data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/bpy_data.c b/source/blender/python/api2_2x/bpy_data.c
index 2ccb1dfe109..d2cd650a814 100644
--- a/source/blender/python/api2_2x/bpy_data.c
+++ b/source/blender/python/api2_2x/bpy_data.c
@@ -395,6 +395,7 @@ PyObject *LibBlockSeq_new(BPy_LibBlockSeq *self, PyObject * args, PyObject *kwd)
ID *id = NULL;
char *name=NULL, *filename=NULL, *data_type=NULL;
int img_width=256, img_height=256;
+ float color[] = {0, 0, 0, 1};
short data_code = 0;
int user_count = 0;
@@ -537,7 +538,7 @@ PyObject *LibBlockSeq_new(BPy_LibBlockSeq *self, PyObject * args, PyObject *kwd)
break;
case ID_IM:
{
- id = (ID *)BKE_add_image_size(img_width, img_height, name?name:"Image", 0);
+ id = (ID *)BKE_add_image_size(img_width, img_height, name?name:"Image", 0, color);
if( !id )
return ( EXPP_ReturnPyObjError( PyExc_MemoryError,
"couldn't create PyObject Image_Type" ) );