New images were being initialized with zero users (normal for other data types),
but for images user counts work differently. (just noticed this is what blender does so Image.New() now does the same) Many of the sys functions had maximum path thengths that were too short. char path[FILE_MAXFILE]; rather then char path[FILE_MAXDIR + FILE_MAXFILE];
This commit is contained in:
@@ -239,7 +239,9 @@ static PyObject *M_Image_New( PyObject * self, PyObject * args)
|
||||
"couldn't create PyObject Image_Type" ) );
|
||||
|
||||
/* reset usage count, since new_image() incremented it */
|
||||
image->id.us--;
|
||||
/* image->id.us--; */
|
||||
/* Strange, new images have a user count of one???, otherwise it messes up */
|
||||
|
||||
return Image_CreatePyObject( image );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user