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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-13 13:20:59 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-13 13:20:59 +0400
commit5b55934c79542858b7fdf61e243007d3cad6a181 (patch)
treed15dd40744bf411a9de99a67589e6225ec1ec284 /source
parent59377695bd21693b9a5a587890f6d70ee5d8b1ff (diff)
Fix part of #30934: save as image in image editor did not set proper defaults
for options like compression.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_image/image_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 1602fe48a17..8b1ff4136b9 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -1265,6 +1265,8 @@ static int image_save_as_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve
if (RNA_struct_property_is_set(op->ptr, "filepath"))
return image_save_as_exec(C, op);
+ save_image_options_defaults(&simopts);
+
if (save_image_options_init(&simopts, sima, scene, TRUE) == 0)
return OPERATOR_CANCELLED;
save_image_options_to_op(&simopts, op);