From 63729bc11f9f99fe4e00cae0ddcbff6220b9715b Mon Sep 17 00:00:00 2001 From: Joep Peters Date: Tue, 22 Jan 2019 15:35:51 +0100 Subject: UI: use same light icon for all light types in properties editor tabs. Differential Revision: https://developer.blender.org/D4237 --- source/blender/editors/space_buttons/buttons_context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_buttons') diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 72457ce079c..35a07e41844 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -653,7 +653,10 @@ void buttons_context_compute(const bContext *C, SpaceButs *sbuts) ptr = &path->ptr[path->len - 1]; if (ptr->type) { - sbuts->dataicon = RNA_struct_ui_icon(ptr->type); + if(RNA_struct_is_a(ptr->type, &RNA_Light)) + sbuts->dataicon = ICON_OUTLINER_DATA_LIGHT; + else + sbuts->dataicon = RNA_struct_ui_icon(ptr->type); } else { sbuts->dataicon = ICON_EMPTY_DATA; -- cgit v1.2.3