Blender  V3.3
Namespaces | Functions
editors/sculpt_paint/paint_canvas.cc File Reference
#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 TexPaintSlotblender::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)
 

Function Documentation

◆ ED_paint_shading_color_override()

eV3DShadingColorType ED_paint_shading_color_override ( bContext C,
const PaintModeSettings settings,
Object ob,
eV3DShadingColorType  orig_color_type 
)

◆ ED_paint_tool_update_sticky_shading_color()

void ED_paint_tool_update_sticky_shading_color ( struct bContext C,
struct Object ob 
)

◆ ED_paint_tool_use_canvas()

bool ED_paint_tool_use_canvas ( struct bContext C,
struct bToolRef tref 
)

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().

◆ paint_tool_shading_color_follows_last_used()

static bool paint_tool_shading_color_follows_last_used ( blender::StringRef  idname)
static

◆ paint_tool_shading_color_follows_last_used_tool()

static bool paint_tool_shading_color_follows_last_used_tool ( struct bContext C,
struct Object ob 
)
static

◆ paint_tool_uses_canvas()

static bool paint_tool_uses_canvas ( blender::StringRef  idname)
static