diff options
Diffstat (limited to 'source/blender/blenkernel/intern/packedFile.c')
-rw-r--r-- | source/blender/blenkernel/intern/packedFile.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/packedFile.c b/source/blender/blenkernel/intern/packedFile.c index 340acc5a96e..a039e0544d5 100644 --- a/source/blender/blenkernel/intern/packedFile.c +++ b/source/blender/blenkernel/intern/packedFile.c @@ -118,15 +118,15 @@ int countPackedFiles(Main *bmain) int count = 0; /* let's check if there are packed files... */ - for (ima = bmain->image.first; ima; ima = ima->id.next) + for (ima = bmain->images.first; ima; ima = ima->id.next) if (BKE_image_has_packedfile(ima)) count ++; - for (vf = bmain->vfont.first; vf; vf = vf->id.next) + for (vf = bmain->fonts.first; vf; vf = vf->id.next) if (vf->packedfile) count++; - for (sound = bmain->sound.first; sound; sound = sound->id.next) + for (sound = bmain->sounds.first; sound; sound = sound->id.next) if (sound->packedfile) count++; @@ -222,7 +222,7 @@ void packAll(Main *bmain, ReportList *reports, bool verbose) bSound *sound; int tot = 0; - for (ima = bmain->image.first; ima; ima = ima->id.next) { + for (ima = bmain->images.first; ima; ima = ima->id.next) { if (BKE_image_has_packedfile(ima) == false && !ID_IS_LINKED(ima)) { if (ima->source == IMA_SRC_FILE) { BKE_image_packfiles(reports, ima, ID_BLEND_PATH(bmain, &ima->id)); @@ -235,14 +235,14 @@ void packAll(Main *bmain, ReportList *reports, bool verbose) } } - for (vfont = bmain->vfont.first; vfont; vfont = vfont->id.next) { + for (vfont = bmain->fonts.first; vfont; vfont = vfont->id.next) { if (vfont->packedfile == NULL && !ID_IS_LINKED(vfont) && BKE_vfont_is_builtin(vfont) == false) { vfont->packedfile = newPackedFile(reports, vfont->name, BKE_main_blendfile_path(bmain)); tot ++; } } - for (sound = bmain->sound.first; sound; sound = sound->id.next) { + for (sound = bmain->sounds.first; sound; sound = sound->id.next) { if (sound->packedfile == NULL && !ID_IS_LINKED(sound)) { sound->packedfile = newPackedFile(reports, sound->name, BKE_main_blendfile_path(bmain)); tot++; @@ -598,7 +598,7 @@ int unpackLibraries(Main *bmain, ReportList *reports) char *newname; int ret_value = RET_ERROR; - for (lib = bmain->library.first; lib; lib = lib->id.next) { + for (lib = bmain->libraries.first; lib; lib = lib->id.next) { if (lib->packedfile && lib->name[0]) { newname = unpackFile(reports, BKE_main_blendfile_path(bmain), lib->filepath, lib->filepath, lib->packedfile, PF_WRITE_ORIGINAL); @@ -623,7 +623,7 @@ void packLibraries(Main *bmain, ReportList *reports) Library *lib; /* test for relativenss */ - for (lib = bmain->library.first; lib; lib = lib->id.next) + for (lib = bmain->libraries.first; lib; lib = lib->id.next) if (!BLI_path_is_rel(lib->name)) break; @@ -632,7 +632,7 @@ void packLibraries(Main *bmain, ReportList *reports) return; } - for (lib = bmain->library.first; lib; lib = lib->id.next) + for (lib = bmain->libraries.first; lib; lib = lib->id.next) if (lib->packedfile == NULL) lib->packedfile = newPackedFile(reports, lib->name, BKE_main_blendfile_path(bmain)); } @@ -643,15 +643,15 @@ void unpackAll(Main *bmain, ReportList *reports, int how) VFont *vf; bSound *sound; - for (ima = bmain->image.first; ima; ima = ima->id.next) + for (ima = bmain->images.first; ima; ima = ima->id.next) if (BKE_image_has_packedfile(ima)) unpackImage(bmain, reports, ima, how); - for (vf = bmain->vfont.first; vf; vf = vf->id.next) + for (vf = bmain->fonts.first; vf; vf = vf->id.next) if (vf->packedfile) unpackVFont(bmain, reports, vf, how); - for (sound = bmain->sound.first; sound; sound = sound->id.next) + for (sound = bmain->sounds.first; sound; sound = sound->id.next) if (sound->packedfile) unpackSound(bmain, reports, sound, how); } |