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:
authorPablo Vazquez <pablo@blender.org>2021-07-26 00:59:53 +0300
committerPablo Vazquez <pablo@blender.org>2021-07-26 00:59:53 +0300
commit0cb25a51de5feb46be387073771e021f28f33c28 (patch)
treeec1ebefcfafb72dc75c05caaae833a99c983c0ae
parent6a673b60005ce1bffbed4edfc4e8f32efe50c581 (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.
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c9
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);
}