diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-06-30 16:17:30 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-07-01 10:44:07 +0300 |
commit | c922b9e2c145b0c945fdb9d99f1209df3bf8bad0 (patch) | |
tree | 0a9ef081505cf0caaad36aa764b3db770622481c /source/blender/imbuf | |
parent | b872ad037aaaffb6783cee9339ce4d876fc1ffca (diff) |
Fix image-from-imbuf resulting in invalid image configuration
The image which source is set to file is not expected to have empty
file path. If it happens it becomes very tricky to save the image on
exit using the standard quit dialog.
This change makes it so if the image buffer does not have file path
then the new image is set to the "generated" source and it behaves
as if the image was created like so and was fully painted on.
Additionally, mark image as dirty, so that quitting Blender after
such image was added will warn about possible data loss.
Diffstat (limited to 'source/blender/imbuf')
0 files changed, 0 insertions, 0 deletions