45 return ELEM(idname,
"builtin.color_filter");
52 if (brush ==
nullptr) {
62 return ELEM(idname,
"builtin_brush.Mask");
67 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
72 if (tref ==
nullptr) {
86 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
91 if (tref ==
nullptr) {
100 if (tref ==
nullptr) {
103 if (tref ==
nullptr) {
115 if (!
U.experimental.use_sculpt_texture_paint) {
116 return orig_color_type;
126 return orig_color_type;
130 switch (settings->canvas_source) {
139 if (slot ==
nullptr) {
General operations, lookup, etc. for materials.
struct Material * BKE_object_material_get(struct Object *ob, short act)
const Brush * BKE_paint_brush_for_read(const Paint *paint)
Paint * BKE_paint_get_active_from_context(const bContext *C)
@ SCULPT_BRUSH_TYPE_SMEAR
@ SCULPT_BRUSH_TYPE_PAINT
@ PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE
@ PAINT_CANVAS_SOURCE_IMAGE
@ PAINT_CANVAS_SOURCE_MATERIAL
@ V3D_SHADING_TEXTURE_COLOR
@ V3D_SHADING_VERTEX_COLOR
eV3DShadingColorType ED_paint_shading_color_override(bContext *C, const PaintModeSettings *settings, Object &ob, eV3DShadingColorType orig_color_type)
static bool image_paint_brush_uses_canvas(bContext *C)
static bool image_paint_brush_type_shading_color_follows_last_used_tool(bContext *C, Object *ob)
static bool image_paint_brush_type_shading_color_follows_last_used(blender::StringRef idname)
void ED_image_paint_brush_type_update_sticky_shading_color(bContext *C, Object *ob)
static bool image_paint_tool_uses_canvas(blender::StringRef idname)
bool ED_image_paint_brush_type_use_canvas(bContext *C, bToolRef *tref)
static TexPaintSlot * get_active_slot(Object &ob)
struct TexPaintSlot * texpaintslot
struct SculptSession * sculpt
bool sticky_shading_color