Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-12-20 20:57:56 +0300
committerTon Roosendaal <ton@blender.org>2006-12-20 20:57:56 +0300
commit253432bfc7c2a1dae224a03fb3055de19743ec67 (patch)
tree2cea30606f9f29be51d5366ddf0d3747b9649b90 /source/blender/blenkernel/intern/packedFile.c
parent0a0753b409221b66f5003d8c257426043ada227e (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/packedFile.c')
-rw-r--r--source/blender/blenkernel/intern/packedFile.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c
index 49ad8d2ac67..0cdfda3be5d 100644
--- a/source/blender/blenkernel/intern/packedFile.c
+++ b/source/blender/blenkernel/intern/packedFile.c
@@ -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);
}
}