Blender Git Commit Log
Git Commits -> Revision 5452f33
Revision 5452f33 by Campbell Barton (master) September 17, 2010, 09:27 (GMT) |
New optional operator function, check(), it takes the same arguments as execute(). This runs after changing a property and allows correcting incompatible options. Returning True will redraw the UI. Currently this is used for setting the write extension when saving files, so changing the image format also corrects the extension. The same is accessible from python where its used when saving SVG/EPS/PNG files. This fixes: [#23828] obj export problems, [#23760] Exporting OBJ and filetype ending also fixed document submission operator. Now the filename in the file selector is the one used for writing this means we remove the "Save Over" popup which could be overlooked too easily. Instead display the filename field with red tint, and a note in the tooltip. |
Commit Details:
Full Hash: 5452f335d7fd768fda7320419e3581e5309529fe
SVN Revision: 31978
Parent Commit: 945ae25
Lines Changed: +261, -78
14 Modified Paths:
/release/scripts/modules/io_utils.py (+8, -0) (Diff)
/release/scripts/op/uv.py (+9, -0) (Diff)
/release/scripts/op/wm.py (+2, -1) (Diff)
/source/blender/blenkernel/intern/exotic.c (+2, -17) (Diff)
/source/blender/editors/space_file/file_draw.c (+13, -1) (Diff)
/source/blender/editors/space_file/file_intern.h (+6, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+114, -47) (Diff)
/source/blender/editors/space_file/file_panels.c (+5, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+31, -7) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+9, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+11, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+32, -3) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)
/release/scripts/op/uv.py (+9, -0) (Diff)
/release/scripts/op/wm.py (+2, -1) (Diff)
/source/blender/blenkernel/intern/exotic.c (+2, -17) (Diff)
/source/blender/editors/space_file/file_draw.c (+13, -1) (Diff)
/source/blender/editors/space_file/file_intern.h (+6, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+114, -47) (Diff)
/source/blender/editors/space_file/file_panels.c (+5, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+31, -7) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+9, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+11, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+32, -3) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)