46 return ELEM(idname,
"builtin.color_filter");
53 if (brush ==
nullptr) {
63 return ELEM(idname,
"builtin_brush.Mask");
68 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
73 if (tref ==
nullptr) {
87 if (ob ==
nullptr || ob->
sculpt ==
nullptr) {
92 if (tref ==
nullptr) {
101 if (tref ==
nullptr) {
104 if (tref ==
nullptr) {
117 return orig_color_type;
127 return orig_color_type;
140 if (slot ==
nullptr) {
General operations, lookup, etc. for materials.
Material * BKE_object_material_get(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
#define USER_EXPERIMENTAL_TEST(userdef, member)
@ 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