42 return ELEM(idname,
"builtin_brush.Paint",
"builtin_brush.Smear",
"builtin.color_filter");
48 return ELEM(idname,
"builtin_brush.Mask");
53 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
58 if (tref ==
nullptr) {
71 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
76 if (tref ==
nullptr) {
85 if (tref ==
nullptr) {
88 if (tref ==
nullptr) {
100 if (!
U.experimental.use_sculpt_texture_paint) {
101 return orig_color_type;
110 return orig_color_type;
123 if (slot ==
nullptr) {
General operations, lookup, etc. for materials.
struct Material * BKE_object_material_get(struct Object *ob, short act)
@ 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 paint_tool_shading_color_follows_last_used(blender::StringRef idname)
static bool paint_tool_uses_canvas(blender::StringRef idname)
void ED_paint_tool_update_sticky_shading_color(struct bContext *C, struct Object *ob)
bool ED_paint_tool_use_canvas(struct bContext *C, bToolRef *tref)
static bool paint_tool_shading_color_follows_last_used_tool(struct bContext *C, struct Object *ob)
static TexPaintSlot * get_active_slot(Object *ob)
struct TexPaintSlot * texpaintslot
struct SculptSession * sculpt
bool sticky_shading_color