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:
authorJoep Peters <Joep>2019-01-22 17:35:51 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-22 19:05:36 +0300
commit63729bc11f9f99fe4e00cae0ddcbff6220b9715b (patch)
treea14d6554fa6400cf98e55eb3b2a3b000d7e35db3 /source/blender/editors/space_buttons
parent1651879d3419eed71d98bc46dba4adce3c09e573 (diff)
UI: use same light icon for all light types in properties editor tabs.
Differential Revision: https://developer.blender.org/D4237
Diffstat (limited to 'source/blender/editors/space_buttons')
-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;