|
Blender V4.3
|
#include "BLI_compiler_compat.h"#include "DNA_brush_types.h"#include "DNA_material_types.h"#include "DNA_scene_types.h"#include "DNA_workspace_types.h"#include "BKE_context.hh"#include "BKE_material.h"#include "BKE_paint.hh"#include "WM_toolsystem.hh"#include "ED_paint.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
| namespace | blender::ed::sculpt_paint::canvas |
Functions | |
| static TexPaintSlot * | blender::ed::sculpt_paint::canvas::get_active_slot (Object &ob) |
| static bool | image_paint_tool_uses_canvas (blender::StringRef idname) |
| static bool | image_paint_brush_uses_canvas (bContext *C) |
| 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_brush_type_shading_color_follows_last_used_tool (bContext *C, Object *ob) |
| bool | ED_image_paint_brush_type_use_canvas (bContext *C, bToolRef *tref) |
| eV3DShadingColorType | ED_paint_shading_color_override (bContext *C, const PaintModeSettings *settings, Object &ob, eV3DShadingColorType orig_color_type) |
Store the last used tool in the sculpt session.
Definition at line 65 of file editors/sculpt_paint/paint_canvas.cc.
References bToolRef::idname, image_paint_brush_type_shading_color_follows_last_used(), image_paint_brush_uses_canvas(), image_paint_tool_uses_canvas(), Object::sculpt, SculptSession::sticky_shading_color, and WM_toolsystem_ref_from_context().
Referenced by brush_stroke_init(), and blender::ed::sculpt_paint::color::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 98 of file editors/sculpt_paint/paint_canvas.cc.
References bToolRef::idname, image_paint_brush_uses_canvas(), image_paint_tool_uses_canvas(), and WM_toolsystem_ref_from_context().
Referenced by ED_paint_shading_color_override().
| eV3DShadingColorType ED_paint_shading_color_override | ( | bContext * | C, |
| const PaintModeSettings * | settings, | ||
| Object & | ob, | ||
| eV3DShadingColorType | orig_color_type ) |
Color type of an object can be overridden in sculpt/paint mode.
Definition at line 110 of file editors/sculpt_paint/paint_canvas.cc.
References TexPaintSlot::attribute_name, ED_image_paint_brush_type_use_canvas(), blender::ed::sculpt_paint::canvas::get_active_slot(), TexPaintSlot::ima, image_paint_brush_type_shading_color_follows_last_used_tool(), PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, PAINT_CANVAS_SOURCE_MATERIAL, Object::sculpt, SculptSession::sticky_shading_color, V3D_SHADING_TEXTURE_COLOR, and V3D_SHADING_VERTEX_COLOR.
Referenced by blender::workbench::ObjectState::ObjectState().
|
static |
Definition at line 59 of file editors/sculpt_paint/paint_canvas.cc.
References ELEM.
Referenced by ED_image_paint_brush_type_update_sticky_shading_color(), and image_paint_brush_type_shading_color_follows_last_used_tool().
|
static |
Definition at line 84 of file editors/sculpt_paint/paint_canvas.cc.
References bToolRef::idname, image_paint_brush_type_shading_color_follows_last_used(), Object::sculpt, and WM_toolsystem_ref_from_context().
Referenced by ED_paint_shading_color_override().
|
static |
Definition at line 48 of file editors/sculpt_paint/paint_canvas.cc.
References BKE_paint_brush_for_read(), BKE_paint_get_active_from_context(), ELEM, Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_PAINT, and SCULPT_BRUSH_TYPE_SMEAR.
Referenced by ED_image_paint_brush_type_update_sticky_shading_color(), and ED_image_paint_brush_type_use_canvas().
|
static |
Definition at line 43 of file editors/sculpt_paint/paint_canvas.cc.
References ELEM.
Referenced by ED_image_paint_brush_type_update_sticky_shading_color(), and ED_image_paint_brush_type_use_canvas().