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

Function Documentation

◆ BKE_paint_canvas_image_get()

bool BKE_paint_canvas_image_get ( PaintModeSettings settings,
Object ob,
Image **  r_image,
ImageUser **  r_image_user 
)

◆ BKE_paint_canvas_key_get()

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

◆ BKE_paint_canvas_uvmap_layer_index_get()

int BKE_paint_canvas_uvmap_layer_index_get ( const struct PaintModeSettings settings,
struct Object ob 
)