[Bf-blender-cvs] [6a0d7f9e412] blender2.8: Workbench: Render studio hdr name in selection
Jeroen Bakker
noreply at git.blender.org
Mon May 14 10:33:37 CEST 2018
Commit: 6a0d7f9e41268254fe189135a74b24129153b101
Author: Jeroen Bakker
Date: Mon May 14 10:32:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB6a0d7f9e41268254fe189135a74b24129153b101
Workbench: Render studio hdr name in selection
===================================================================
M source/blender/makesrna/intern/rna_space.c
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list