Image counter can be set to zero when unlinking images, whilst they can
be in use for texture. This is a temporary solution to prevent errors!

(Now image unlinking doesn't set zero users anymore)
This commit is contained in:
Ton Roosendaal
2008-10-09 10:59:48 +00:00
parent 9ca5b78d1a
commit 158d8022bc

View File

@@ -862,7 +862,9 @@ static void image_unlink_cb(void *ima_pp_v, void *unused)
if(ima_pp && *ima_pp) {
Image *ima= *ima_pp;
ima->id.us--;
/* (for time being, texturefaces are no users, conflict in design...) */
if(ima->id.us>1)
ima->id.us--;
*ima_pp= NULL;
}
}