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:
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_context.c')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c5
1 files changed, 4 insertions, 1 deletions
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;