Blender Git Loki

Git Commits -> Revision 3022dd2

Revision 3022dd2 by Brecht Van Lommel (master)
May 17, 2019, 18:03 (GMT)
Images: changes to avoid losing new images that have not been saved

The basic idea is that such new images will be packed into the .blend file
when saving all modified images from the quit dialog. To make this workflow
nicer a number of changes were made to how this type of packed image is
handled.

* "Save Modified Images" now packs generated images into the .blend file.
* "Save As" for packed images now automatically unpacks the image, so that
it's easy to save automatically packed images. "Save Copy" keeps it packed.
* "Save" for packed images now re-saves the image into the .blend file, so
that it's effectively the equivalent of "Save" for non-packed images.
* Empty image filepaths are no longer remapped when saving the .blend file.
Previously it would become e.g. "//../../" which makes no sense for generated
images with no filepath yet.
* Hide unpack button and filepath for such packed images with no filepath.
Unpacking does not work in a predictable way without a filepath, better
to just "Save As".

Commit Details:

Full Hash: 3022dd2b27fdfd8aca369bfb0e390965de448b7a
Parent Commit: 60a4342
Lines Changed: +106, -57

6 Modified Paths:

/release/scripts/startup/bl_ui/space_image.py (+7, -6) (Diff)
/source/blender/blenkernel/BKE_image.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/bpath.c (+4, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+8, -2) (Diff)
/source/blender/editors/space_image/image_buttons.c (+9, -4) (Diff)
/source/blender/editors/space_image/image_ops.c (+77, -44) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021