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:
authorAntonioya <blendergit@gmail.com>2018-10-29 19:49:26 +0300
committerAntonioya <blendergit@gmail.com>2018-10-29 19:49:26 +0300
commitbd7cb42f3d4c9c9a79fdfce4f2cc1ac54cd8b765 (patch)
treec2f85c9a68cf79ea37421313f025f23ce9524f12 /source/blender/editors/space_buttons
parent11f9018ec665eca3ae70ca2fa1c030af5df4d926 (diff)
GP: Remove unneeded code to get icon
Test the object type is not good idea here.
Diffstat (limited to 'source/blender/editors/space_buttons')
-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;
}
}
}