[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45241] trunk/blender/source/blender/ makesrna/intern/rna_image.c: expose image render_slot so keybindings can be configured to change
Campbell Barton
ideasman42 at gmail.com
Wed Mar 28 11:10:20 CEST 2012
Revision: 45241
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45241
Author: campbellbarton
Date: 2012-03-28 09:10:19 +0000 (Wed, 28 Mar 2012)
Log Message:
-----------
expose image render_slot so keybindings can be configured to change
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_image.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_image.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_image.c 2012-03-28 09:07:43 UTC (rev 45240)
+++ trunk/blender/source/blender/makesrna/intern/rna_image.c 2012-03-28 09:10:19 UTC (rev 45241)
@@ -597,6 +597,11 @@
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)
More information about the Bf-blender-cvs
mailing list