diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-21 21:03:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-21 21:03:24 +0400 |
commit | 95c185c4c5be57fb0c83b1045605ca8ac37e5284 (patch) | |
tree | 8d8f4f3463a497db6aba774febb03c45df743df5 /source/blender/python/api2_2x/Image.c | |
parent | 3a77b352a47e3410008baa61d687c2fc327c0b02 (diff) |
Setting the image name was raising an error.
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r-- | source/blender/python/api2_2x/Image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 875aacbab1c..b280fd83931 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -1223,7 +1223,7 @@ static int Image_setAttr( BPy_Image * self, char *name, PyObject * value ) if( strcmp( name, "name" ) == 0 ) error = Image_setName( self, valtuple ); - if( strcmp( name, "filename" ) == 0 ) + else if( strcmp( name, "filename" ) == 0 ) error = Image_setFilename( self, valtuple ); else if( strcmp( name, "xrep" ) == 0 ) error = Image_setXRep( self, valtuple ); |