|
Blender
V3.3
|
#include "BLI_compiler_compat.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_scene_types.h"#include "BKE_customdata.h"#include "BKE_image.h"#include "BKE_material.h"#include "BKE_paint.h"#include "IMB_imbuf_types.h"Go to the source code of this file.
Namespaces | |
| blender | |
| blender::bke | |
| blender::bke::paint | |
| blender::bke::paint::canvas | |
Functions | |
| static TexPaintSlot * | blender::bke::paint::canvas::get_active_slot (Object *ob) |
| bool | BKE_paint_canvas_image_get (PaintModeSettings *settings, Object *ob, Image **r_image, ImageUser **r_image_user) |
| int | BKE_paint_canvas_uvmap_layer_index_get (const struct PaintModeSettings *settings, struct Object *ob) |
| char * | BKE_paint_canvas_key_get (struct PaintModeSettings *settings, struct Object *ob) |
| bool BKE_paint_canvas_image_get | ( | PaintModeSettings * | settings, |
| Object * | ob, | ||
| Image ** | r_image, | ||
| ImageUser ** | r_image_user | ||
| ) |
Definition at line 39 of file blenkernel/intern/paint_canvas.cc.
References PaintModeSettings::canvas_image, PaintModeSettings::canvas_source, blender::bke::paint::canvas::get_active_slot(), TexPaintSlot::ima, TexPaintSlot::image_user, PaintModeSettings::image_user, PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, and PAINT_CANVAS_SOURCE_MATERIAL.
Referenced by BKE_paint_canvas_key_get(), blender::ed::sculpt_paint::paint::image::ImageData::init_active_image(), and SCULPT_use_image_paint_brush().
| char* BKE_paint_canvas_key_get | ( | struct PaintModeSettings * | settings, |
| struct Object * | ob | ||
| ) |
Create a key that can be used to compare with previous ones to identify changes. The resulting 'string' is owned by the caller.
Definition at line 107 of file blenkernel/intern/paint_canvas.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_paint_canvas_image_get(), BKE_paint_canvas_uvmap_layer_index_get(), BLI_strdup(), image(), LISTBASE_FOREACH, ImageUser::tile, ImBuf::x, and ImBuf::y.
Referenced by sculpt_update_object().
| int BKE_paint_canvas_uvmap_layer_index_get | ( | const struct PaintModeSettings * | settings, |
| struct Object * | ob | ||
| ) |
Definition at line 70 of file blenkernel/intern/paint_canvas.cc.
References PaintModeSettings::canvas_source, CD_MLOOPUV, CustomData_get_active_layer_index(), CustomData_get_named_layer_index(), Object::data, blender::bke::paint::canvas::get_active_slot(), Mesh::ldata, mesh, OB_MESH, PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, PAINT_CANVAS_SOURCE_MATERIAL, Object::type, and TexPaintSlot::uvname.
Referenced by BKE_paint_canvas_key_get().