diff options
author | Thomas Dinges <blender@dingto.org> | 2012-02-22 18:19:39 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-02-22 18:19:39 +0400 |
commit | edab2e4b3d44f193441e480a06d4d009d006b40d (patch) | |
tree | 92c149a6f0d8b7f75e1a187e463c73155100a252 /source | |
parent | f5f529e74091b2c8d383504db4a2fea2c0279959 (diff) |
Multi File Output Node:
* Some small UI tweaks, grey out image settings rather than hide and made it a bit more compact.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 63eead6780f..b161d16ecf9 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -1731,10 +1731,9 @@ static void node_composit_buts_multi_file_output_details(uiLayout *layout, bCont uiTemplateList(layout, C, ptr, "inputs", ptr, "active_input_index", NULL, 0, 0, 0); if (active_input_ptr.data) { + PointerRNA imfptr = RNA_pointer_get(&active_input_ptr, "format"); uiLayout *row, *col; - uiItemS(layout); - col = uiLayoutColumn(layout, 1); uiItemL(col, "File Path:", 0); row = uiLayoutRow(col, 0); @@ -1742,12 +1741,14 @@ static void node_composit_buts_multi_file_output_details(uiLayout *layout, bCont uiItemFullO(row, "NODE_OT_output_multi_file_remove_active_socket", "", ICON_X, NULL, WM_OP_EXEC_DEFAULT, UI_ITEM_R_ICON_ONLY); uiItemS(layout); - uiItemL(layout, "Format:", 0); - uiItemR(layout, &active_input_ptr, "use_render_format", 0, NULL, 0); - if (!RNA_boolean_get(&active_input_ptr, "use_render_format")) { - PointerRNA imfptr = RNA_pointer_get(&active_input_ptr, "format"); - uiTemplateImageSettings(layout, &imfptr); - } + + col = uiLayoutColumn(layout, 1); + uiItemL(col, "Format:", 0); + uiItemR(col, &active_input_ptr, "use_render_format", 0, NULL, 0); + + col= uiLayoutColumn(layout, 0); + uiLayoutSetActive(col, RNA_boolean_get(&active_input_ptr, "use_render_format")==0); + uiTemplateImageSettings(col, &imfptr); } } |