Blender
V3.3
|
#include "DNA_image_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "ED_paint.h"
#include "ED_uvedit.h"
#include "BLI_math.h"
#include "BLI_math_color_blend.h"
#include "BLI_task.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "BKE_brush.h"
#include "BKE_image_wrappers.hh"
#include "BKE_material.h"
#include "BKE_pbvh.h"
#include "BKE_pbvh_pixels.hh"
#include "bmesh.h"
#include "NOD_shader.h"
#include "sculpt_intern.h"
Go to the source code of this file.
Namespaces | |
blender | |
blender::ed | |
blender::ed::sculpt_paint | |
blender::ed::sculpt_paint::paint | |
blender::ed::sculpt_paint::paint::image | |
void SCULPT_do_paint_brush_image | ( | PaintModeSettings * | paint_mode_settings, |
Sculpt * | sd, | ||
Object * | ob, | ||
PBVHNode ** | nodes, | ||
int | totnode | ||
) |
Definition at line 489 of file sculpt_paint_image.cc.
References BKE_paint_brush(), BKE_pbvh_parallel_range_settings(), BLI_task_parallel_range(), data, blender::ed::sculpt_paint::paint::image::do_mark_dirty_regions(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::paint::image::do_push_undo_tile(), blender::ed::sculpt_paint::paint::image::ImageData::init_active_image(), and Sculpt::paint.
Referenced by SCULPT_do_paint_brush().
bool SCULPT_paint_image_canvas_get | ( | struct PaintModeSettings * | paint_mode_settings, |
struct Object * | ob, | ||
struct Image ** | r_image, | ||
struct ImageUser ** | r_image_user | ||
) |
Get the image canvas for painting on the given object.
Definition at line 458 of file sculpt_paint_image.cc.
References blender::ed::sculpt_paint::paint::image::ImageData::image, blender::ed::sculpt_paint::paint::image::ImageData::image_user, and blender::ed::sculpt_paint::paint::image::ImageData::init_active_image().
Referenced by sculpt_needs_pbvh_pixels(), and sculpt_pbvh_update_pixels().
bool SCULPT_use_image_paint_brush | ( | PaintModeSettings * | settings, |
Object * | ob | ||
) |
Definition at line 476 of file sculpt_paint_image.cc.
References BKE_paint_canvas_image_get(), image(), OB_MESH, and Object::type.
Referenced by sculpt_brush_stroke_init(), SCULPT_do_paint_brush(), sculpt_stroke_done(), sculpt_stroke_test_start(), and sculpt_stroke_update_step().