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:
2006-09-16 10:05:57 +00:00
parent e6960f3881
commit c7d39e1a06
2 changed files with 21 additions and 19 deletions

View File

@@ -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 );
}