From 0cb25a51de5feb46be387073771e021f28f33c28 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sun, 25 Jul 2021 23:59:53 +0200 Subject: UI: Line Art: Always use Material icon on picker The Material picker shouldn't change icon based on it's state, it should always display the Material icon. --- source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/blender/gpencil_modifiers') diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index bc6a9e53f11..33e766a7315 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -320,13 +320,8 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel) } uiLayout *row = uiLayoutRow(layout, true); uiLayoutSetRedAlert(row, !material_valid); - uiItemPointerR(row, - ptr, - "target_material", - &obj_data_ptr, - "materials", - NULL, - material_valid ? ICON_SHADING_TEXTURE : ICON_ERROR); + uiItemPointerR( + row, ptr, "target_material", &obj_data_ptr, "materials", NULL, ICON_SHADING_TEXTURE); gpencil_modifier_panel_end(layout, ptr); } -- cgit v1.2.3