diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-28 13:10:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-28 13:10:19 +0400 |
commit | 1e5424564c0c01d0772641f3896ffaa1a2616e2b (patch) | |
tree | 1bfd5d7a76f25a135516e310c0bf952c567acdc6 /source/blender | |
parent | 0dd34081231ee816275d0f2c41cfdbb725b5825f (diff) |
expose image render_slot so keybindings can be configured to change
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c index e5a0f43baf3..792635ba5ae 100644 --- a/source/blender/makesrna/intern/rna_image.c +++ b/source/blender/makesrna/intern/rna_image.c @@ -597,6 +597,11 @@ static void rna_def_image(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Bindcode", "OpenGL bindcode"); RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL); + prop = RNA_def_property(srna, "render_slot", PROP_INT, PROP_UNSIGNED); + RNA_def_property_range(prop, 0, IMA_MAX_RENDER_SLOT - 1); + RNA_def_property_ui_text(prop, "Render Slot", "The current render slot displayed, only for viewer type images"); + RNA_def_property_update(prop, NC_IMAGE|ND_DISPLAY, NULL); + /* Image.has_data and Image.depth are temporary, Update import_obj.py when they are replaced (Arystan) |