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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-10-30 14:06:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-10-30 14:07:10 +0300
commit43bf78c946c478fd944d70f11b940ac4dd630fcf (patch)
tree556f8a6468a7cd30173324648dae032212ea2bd1 /source/blender/makesrna/intern/rna_space.c
parente6abc3ad5751a272930841757e588bc25ce0bde7 (diff)
Image editor: Add options to display separate R, G and B channels
Works totally similar to backdrop in the compositor. Requested by Sean Kennedy, but could be useful for lots for VFX guys. Reviewers: campbellbarton Reviewed By: campbellbarton Subscribers: sebastian_k, hype Differential Revision: https://developer.blender.org/D1590
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 9e660ad01e8..65de2195c51 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -142,6 +142,9 @@ static EnumPropertyItem draw_channels_items[] = {
{SI_SHOW_ALPHA, "ALPHA", ICON_IMAGE_ALPHA, "Alpha", "Draw alpha transparency channel"},
{SI_SHOW_ZBUF, "Z_BUFFER", ICON_IMAGE_ZDEPTH, "Z-Buffer",
"Draw Z-buffer associated with image (mapped from camera clip start to end)"},
+ {SI_SHOW_R, "RED", ICON_COLOR_RED, "Red", ""},
+ {SI_SHOW_G, "GREEN", ICON_COLOR_GREEN, "Green", ""},
+ {SI_SHOW_B, "BLUE", ICON_COLOR_BLUE, "Blue", ""},
{0, NULL, 0, NULL, NULL}
};
@@ -838,6 +841,10 @@ static EnumPropertyItem *rna_SpaceImageEditor_draw_channels_itemf(bContext *UNUS
RNA_enum_items_add_value(&item, &totitem, draw_channels_items, 0);
}
+ RNA_enum_items_add_value(&item, &totitem, draw_channels_items, SI_SHOW_R);
+ RNA_enum_items_add_value(&item, &totitem, draw_channels_items, SI_SHOW_G);
+ RNA_enum_items_add_value(&item, &totitem, draw_channels_items, SI_SHOW_B);
+
RNA_enum_item_end(&item, &totitem);
*r_free = true;