Blender
V3.3
|
#include "BLI_compiler_compat.h"
#include "DNA_material_types.h"
#include "DNA_scene_types.h"
#include "DNA_workspace_types.h"
#include "BKE_material.h"
#include "BKE_paint.h"
#include "WM_toolsystem.h"
#include "ED_paint.h"
Go to the source code of this file.
Namespaces | |
blender | |
blender::ed | |
blender::ed::sculpt_paint | |
blender::ed::sculpt_paint::canvas | |
Functions | |
static TexPaintSlot * | blender::ed::sculpt_paint::canvas::get_active_slot (Object *ob) |
static bool | paint_tool_uses_canvas (blender::StringRef idname) |
static bool | paint_tool_shading_color_follows_last_used (blender::StringRef idname) |
void | ED_paint_tool_update_sticky_shading_color (struct bContext *C, struct Object *ob) |
static bool | paint_tool_shading_color_follows_last_used_tool (struct bContext *C, struct Object *ob) |
bool | ED_paint_tool_use_canvas (struct bContext *C, bToolRef *tref) |
eV3DShadingColorType | ED_paint_shading_color_override (bContext *C, const PaintModeSettings *settings, Object *ob, eV3DShadingColorType orig_color_type) |
eV3DShadingColorType ED_paint_shading_color_override | ( | bContext * | C, |
const PaintModeSettings * | settings, | ||
Object * | ob, | ||
eV3DShadingColorType | orig_color_type | ||
) |
Definition at line 95 of file editors/sculpt_paint/paint_canvas.cc.
References TexPaintSlot::attribute_name, C, PaintModeSettings::canvas_source, ED_paint_tool_use_canvas(), blender::ed::sculpt_paint::canvas::get_active_slot(), TexPaintSlot::ima, PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, PAINT_CANVAS_SOURCE_MATERIAL, paint_tool_shading_color_follows_last_used_tool(), Object::sculpt, SculptSession::sticky_shading_color, V3D_SHADING_TEXTURE_COLOR, and V3D_SHADING_VERTEX_COLOR.
Definition at line 51 of file editors/sculpt_paint/paint_canvas.cc.
References C, bToolRef::idname, paint_tool_shading_color_follows_last_used(), paint_tool_uses_canvas(), Object::sculpt, SculptSession::sticky_shading_color, and WM_toolsystem_ref_from_context().
Referenced by sculpt_brush_stroke_init(), and sculpt_color_filter_invoke().
Does the given tool use a paint canvas.
When #tref isn't given the active tool from the context is used.
Definition at line 83 of file editors/sculpt_paint/paint_canvas.cc.
References C, bToolRef::idname, paint_tool_uses_canvas(), and WM_toolsystem_ref_from_context().
Referenced by ED_paint_shading_color_override().
|
static |
Definition at line 45 of file editors/sculpt_paint/paint_canvas.cc.
References ELEM.
Referenced by ED_paint_tool_update_sticky_shading_color(), and paint_tool_shading_color_follows_last_used_tool().
|
static |
Definition at line 69 of file editors/sculpt_paint/paint_canvas.cc.
References C, bToolRef::idname, paint_tool_shading_color_follows_last_used(), Object::sculpt, and WM_toolsystem_ref_from_context().
Referenced by ED_paint_shading_color_override().
|
static |
Definition at line 40 of file editors/sculpt_paint/paint_canvas.cc.
References ELEM.
Referenced by ED_paint_tool_update_sticky_shading_color(), and ED_paint_tool_use_canvas().