Page Menu
Home
Search
Configure Global Search
Log In
Files
F1223
patch-Texture-3087
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Ken Hughes (khughes)
Nov 13 2013, 12:55 PM
Size
853 B
Subscribers
None
patch-Texture-3087
View Options
Index: source/blender/python/api2_2x/Texture.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Texture.c,v
retrieving revision 1.15
diff -u -r1.15 Texture.c
--- source/blender/python/api2_2x/Texture.c 21 Sep 2005 19:48:39 -0000 1.15
+++ source/blender/python/api2_2x/Texture.c 24 Sep 2005 14:10:25 -0000
@@ -1496,13 +1496,12 @@
static int Texture_setImage( BPy_Texture * self, PyObject * value )
{
- PyObject *pyimg;
Image *blimg = NULL;
- if( !PyArg_ParseTuple( value, "O!", &Image_Type, &pyimg ) )
+ if( !BPy_Image_Check (value) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected an Image" );
- blimg = Image_FromPyObject( pyimg );
+ blimg = Image_FromPyObject( value );
if( self->texture->ima ) {
self->texture->ima->id.us--;
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/ec/0f531a3afe7964f2069ee9bb7132
Event Timeline
Log In to Comment