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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-05-14 11:32:28 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-05-14 11:32:52 +0300
commit6a0d7f9e41268254fe189135a74b24129153b101 (patch)
treea65f8071f48955a20806d332bb262009156b7305 /source/blender/makesrna/intern/rna_space.c
parent258c5f2c0f4067b50dcae372c67186fd87a976a8 (diff)
Workbench: Render studio hdr name in selection
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 306c659fbf6..d00c14ae1db 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -714,13 +714,15 @@ static const EnumPropertyItem *rna_View3DShading_studio_light_itemf(
PropertyRNA *UNUSED(prop), bool *r_free)
{
EnumPropertyItem *item = NULL;
+ EnumPropertyItem *lastitem;
int totitem = 0;
- /* XXX: add studio lights */
LISTBASE_FOREACH(StudioLight*, sl, BKE_studiolight_listbase()) {
if (totitem < NUM_STUDIO_LIGHT_ITEMS) {
RNA_enum_items_add_value(&item, &totitem, rna_enum_studio_light_items, totitem);
- item[totitem-1].icon = sl->icon_id;
+ lastitem = &item[totitem-1];
+ lastitem->icon = sl->icon_id;
+ lastitem->name = sl->name;
}
}