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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-09-21 21:03:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-09-21 21:03:24 +0400
commit95c185c4c5be57fb0c83b1045605ca8ac37e5284 (patch)
tree8d8f4f3463a497db6aba774febb03c45df743df5 /source
parent3a77b352a47e3410008baa61d687c2fc327c0b02 (diff)
Setting the image name was raising an error.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Image.c2
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 );