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:
authorCampbell Barton <ideasman42@gmail.com>2005-12-18 11:47:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2005-12-18 11:47:55 +0300
commit2b7919a9f21c77db85714f0041fb0883270d42ff (patch)
tree754f788b6367fa3ee1c1f7bed42a438330dea8d2 /source/blender/python/api2_2x/Image.c
parente47f918e5ede372463298e1faf3569afb8d50124 (diff)
fixed returning true/false, thanks Willian. as well as removed the image space spesific image changed call.
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r--source/blender/python/api2_2x/Image.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c
index f7d135fe7b3..3d5a2c08df5 100644
--- a/source/blender/python/api2_2x/Image.c
+++ b/source/blender/python/api2_2x/Image.c
@@ -126,7 +126,7 @@ static PyObject *M_Image_New( PyObject * self, PyObject * args)
if( !img )
return ( EXPP_ReturnPyObjError( PyExc_MemoryError,
"couldn't create PyObject Image_Type" ) );
- // image_changed(img, 0);
+
return Image_CreatePyObject( img );
}
@@ -894,9 +894,6 @@ static PyObject *Image_reload( BPy_Image * self )
free_image_buffers( img ); /* force read again */
img->ok = 1;
- if( G.sima )
- image_changed( G.sima, 0 );
-
Py_RETURN_NONE;
}
@@ -1104,12 +1101,10 @@ static PyObject *Image_getAttr( BPy_Image * self, char *name )
attr = PyInt_FromLong( self->image->animspeed );
else if( strcmp( name, "packed" ) == 0 ) {
if (self->image->packedfile) {
- attr = Py_True;
+ attr = EXPP_incr_ret_True();
} else {
- attr = Py_False;
+ attr = EXPP_incr_ret_False();
}
- Py_INCREF(attr);
-
} else if( strcmp( name, "bindcode" ) == 0 )
attr = PyInt_FromLong( self->image->bindcode );
else if( strcmp( name, "users" ) == 0 )