diff options
author | Pablo Vazquez <pablo@blender.org> | 2021-07-26 00:59:53 +0300 |
---|---|---|
committer | Pablo Vazquez <pablo@blender.org> | 2021-07-26 00:59:53 +0300 |
commit | 0cb25a51de5feb46be387073771e021f28f33c28 (patch) | |
tree | ec1ebefcfafb72dc75c05caaae833a99c983c0ae /source | |
parent | 6a673b60005ce1bffbed4edfc4e8f32efe50c581 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 9 |
1 files changed, 2 insertions, 7 deletions
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); } |