image save operator now shares settings and UI with render & image out node.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 Nov 2011 23:56:32 +0000 (23:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 Nov 2011 23:56:32 +0000 (23:56 +0000)
commitda25b50ccb6a2a2c7d91ec588fe5c1b0e150ae4e
tree8abc36b362e479a6ba6aca8a8de417fd1c9d4d47
parent30fd1ab523393216a66a7debb7e42ec39e40a242
image save operator now shares settings and UI with render & image out node.

details:
- setting format options from python isnt possible anymore since this isnt exposed via op->properties, python should use image.save() function instead.
- image save UI now hides 'Relative' option when copy is selected since it has no effect.
- default image depth is set to 8 or more if the image has no float buffer, otherwise its set to 32 or less.

other fixes:
- image new was adding an image with a filepath set to "untitled", if this file happened to exist in the current directory a save on the generated image would overwrite it, now initialize to empty path.
- BKE_ftype_to_imtype was returning an invalid value if ftype==0.
15 files changed:
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/BKE_writeavi.h
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/writeavi.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_layout.c
source/blender/editors/interface/interface_utils.c
source/blender/editors/render/render_shading.c
source/blender/editors/sound/sound_ops.c
source/blender/editors/space_file/file_panels.c
source/blender/editors/space_image/image_ops.c
source/blender/makesrna/intern/rna_scene.c
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/pipeline.c
source/blenderplayer/bad_level_call_stubs/stubs.c