|
Blender V4.3
|
#include "BLI_compiler_compat.h"#include "BLI_string.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_scene_types.h"#include "BKE_customdata.hh"#include "BKE_image.hh"#include "BKE_material.h"#include "BKE_paint.hh"#include "IMB_imbuf_types.hh"#include <sstream>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::paint |
| namespace | 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 PaintModeSettings *settings, Object *ob) |
| char * | BKE_paint_canvas_key_get (PaintModeSettings *settings, Object *ob) |
| bool BKE_paint_canvas_image_get | ( | PaintModeSettings * | settings, |
| Object * | ob, | ||
| Image ** | r_image, | ||
| ImageUser ** | r_image_user ) |
Definition at line 43 of file blenkernel/intern/paint_canvas.cc.
References blender::bke::paint::canvas::get_active_slot(), TexPaintSlot::ima, TexPaintSlot::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 | ( | PaintModeSettings * | settings, |
| 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 110 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 PaintModeSettings * | settings, |
| Object * | ob ) |
Definition at line 74 of file blenkernel/intern/paint_canvas.cc.
References CD_PROP_FLOAT2, CustomData_get_active_layer_index(), CustomData_get_named_layer_index(), Object::data, blender::bke::paint::canvas::get_active_slot(), 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().