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:
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index c4756e1635d..04948fd6984 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -646,13 +646,7 @@ void buttons_context_compute(const bContext *C, SpaceButs *sbuts)
sbuts->dataicon = RNA_struct_ui_icon(ptr->type);
}
else {
- Object *ob = CTX_data_active_object(C);
- if (ob->type == OB_GPENCIL) {
- sbuts->dataicon = ICON_GREASEPENCIL;
- }
- else {
- sbuts->dataicon = ICON_EMPTY_DATA;
- }
+ sbuts->dataicon = ICON_EMPTY_DATA;
}
}
}