diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-08 17:37:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-08 17:37:34 +0300 |
commit | 5eaf9f90c1acc1b337a3fee38887f5db2a46ac81 (patch) | |
tree | 6c2608c7d77487761dfeefc0caf15be68dd64b0b /source/blender/python/api2_2x/Texture.c | |
parent | 51c16edabc18a13e91bee1a35cbe39eb1e911ea3 (diff) |
BPython API
added a function - GenericLib_assignData for assigning blender data, to assign an ipo to a camera or world to a scene for instance.
Using this function removed ~300 lines of code.
also fixes user count error in some places that didnt check.
also made it possible to clear the colorband by setting it to []
Diffstat (limited to 'source/blender/python/api2_2x/Texture.c')
-rw-r--r-- | source/blender/python/api2_2x/Texture.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c index 67120b5f6c6..1f2f54aadd3 100644 --- a/source/blender/python/api2_2x/Texture.c +++ b/source/blender/python/api2_2x/Texture.c @@ -2662,9 +2662,7 @@ static PyObject *Texture_getColorband( BPy_Texture * self) int Texture_setColorband( BPy_Texture * self, PyObject * value) { - if (!self->texture->coba) - self->texture->coba = MEM_callocN( sizeof(ColorBand), "colorband"); - return EXPP_Colorband_fromPyList( self->texture->coba, value ); + return EXPP_Colorband_fromPyList( &self->texture->coba, value ); } static PyObject *Texture_evaluate( BPy_Texture * self, PyObject * args ) |