The Big Image refactor!

Please read:
http://www.blender3d.org/cms/Imaging.834.0.html

Or in short:

- adding MultiLayer Image support
- recoded entire Image API
- better integration of movie/sequence Images

Was a whole load of work... went down for a week to do this. So, will need
a lot of testing! Will be in irc all evening.
This commit is contained in:
2006-12-20 17:57:56 +00:00
parent 0a0753b409
commit 253432bfc7
86 changed files with 5755 additions and 3462 deletions

View File

@@ -402,7 +402,7 @@ there was an error or when the user desides to cancel the operation.
*/
char * unpackFile(char * abs_name, char * local_name, PackedFile * pf, int how)
char *unpackFile(char * abs_name, char * local_name, PackedFile * pf, int how)
{
char menu[6 * (FILE_MAXDIR + FILE_MAXFILE + 100)];
char line[FILE_MAXDIR + FILE_MAXFILE + 100];
@@ -413,7 +413,7 @@ char * unpackFile(char * abs_name, char * local_name, PackedFile * pf, int how)
if (pf != NULL) {
if (how == PF_ASK) {
strcpy(menu, "UnPack file%t");
sprintf(menu, "UnPack file%%t|Remove Pack %%x%d", PF_REMOVE);
if (strcmp(abs_name, local_name)) {
switch (checkPackedFile(local_name, pf)) {
@@ -460,6 +460,9 @@ char * unpackFile(char * abs_name, char * local_name, PackedFile * pf, int how)
case -1:
case PF_KEEP:
break;
case PF_REMOVE:
temp= abs_name;
break;
case PF_USE_LOCAL:
// if file exists use it
if (BLI_exists(local_name)) {
@@ -596,10 +599,10 @@ int unpackImage(Image * ima, int how)
if (newname != NULL) {
ret_value = RET_OK;
freePackedFile(ima->packedfile);
ima->packedfile = 0;
ima->packedfile = NULL;
strcpy(ima->name, newname);
MEM_freeN(newname);
free_image_buffers(ima);
BKE_image_signal(ima, NULL, IMA_SIGNAL_RELOAD);
}
}