Blender V4.3
paint_canvas.cc File Reference
#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 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 PaintModeSettings *settings, Object *ob)
 
char * BKE_paint_canvas_key_get (PaintModeSettings *settings, Object *ob)
 

Function Documentation

◆ BKE_paint_canvas_image_get()

◆ BKE_paint_canvas_key_get()

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

◆ BKE_paint_canvas_uvmap_layer_index_get()