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:
authorCampbell Barton <ideasman42@gmail.com>2020-02-25 09:05:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-25 09:19:32 +0300
commit9e45468835bacca145028dafad9be33accad5bed (patch)
tree6349ba602a7b84746b56bf2be115ca97ab95e075 /source/blender/editors/space_image/image_buttons.c
parent096936fe1d42e8ef49000ad05d6ea5f63f529015 (diff)
Image: support saving images in non-image spaces
Alternate fix for T74182, making changes to the save-as operator.
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r--source/blender/editors/space_image/image_buttons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 454546cf34f..270fe0c59dc 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -855,7 +855,7 @@ void uiTemplateImage(uiLayout *layout,
/* Disable editing if image was modified, to avoid losing changes. */
const bool is_dirty = BKE_image_is_dirty(ima);
- if (is_dirty && CTX_wm_space_image(C)) {
+ if (is_dirty) {
uiLayout *row = uiLayoutRow(layout, true);
uiItemO(row, IFACE_("Save"), ICON_NONE, "image.save");
uiItemO(row, IFACE_("Discard"), ICON_NONE, "image.reload");