diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-29 19:49:26 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-29 19:49:26 +0300 |
commit | bd7cb42f3d4c9c9a79fdfce4f2cc1ac54cd8b765 (patch) | |
tree | c2f85c9a68cf79ea37421313f025f23ce9524f12 /source/blender/editors/space_buttons/buttons_context.c | |
parent | 11f9018ec665eca3ae70ca2fa1c030af5df4d926 (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/buttons_context.c')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 8 |
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; } } } |