Blender V4.3
paint_canvas.cc File Reference
#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 TexPaintSlotblender::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)
 

Function Documentation

◆ ED_image_paint_brush_type_update_sticky_shading_color()

◆ ED_image_paint_brush_type_use_canvas()

bool ED_image_paint_brush_type_use_canvas ( bContext * C,
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 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().

◆ ED_paint_shading_color_override()

◆ image_paint_brush_type_shading_color_follows_last_used()

static bool image_paint_brush_type_shading_color_follows_last_used ( blender::StringRef idname)
static

◆ image_paint_brush_type_shading_color_follows_last_used_tool()

static bool image_paint_brush_type_shading_color_follows_last_used_tool ( bContext * C,
Object * ob )
static

◆ image_paint_brush_uses_canvas()

◆ image_paint_tool_uses_canvas()

static bool image_paint_tool_uses_canvas ( blender::StringRef idname)
static