Searched refs:tool_slots (Results 1 – 7 of 7) sorted by relevance
/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/ |
H A D | paint_toolslots.c | 48 paint->tool_slots = MEM_recallocN(paint->tool_slots, sizeof(*paint->tool_slots) * len); in BKE_paint_toolslots_len_ensure() 64 if (paint->tool_slots[slot_index].brush == NULL) { in paint_toolslots_init() 65 paint->tool_slots[slot_index].brush = brush; in paint_toolslots_init() 127 PaintToolSlot *tslot = &paint->tool_slots[slot_index]; in BKE_paint_toolslots_brush_update_ex() 155 PaintToolSlot *tslot = &paint->tool_slots[i]; in BKE_paint_toolslots_brush_validate() 175 PaintToolSlot *tslot = &paint->tool_slots[slot_index]; in BKE_paint_toolslots_brush_get()
|
H A D | paint.c | 1129 MEM_SAFE_FREE(paint->tool_slots); in BKE_paint_free() 1140 tar->tool_slots = MEM_dupallocN(src->tool_slots); in BKE_paint_copy() 1145 if (src->tool_slots != NULL) { in BKE_paint_copy() 1147 id_us_plus((ID *)tar->tool_slots[i].brush); in BKE_paint_copy()
|
H A D | scene.c | 461 BKE_LIB_FOREACHID_PROCESS(data, paint->tool_slots[i].brush, IDWALK_CB_USER); in scene_foreach_paint()
|
/dports/graphics/blender/blender-2.91.0/source/blender/makesrna/intern/ |
H A D | rna_sculpt_paint.c | 297 if ((tslot >= paint->tool_slots) && (tslot < (paint->tool_slots + paint->tool_slots_len))) { in paint_contains_brush_slot() 298 *r_index = (int)(tslot - paint->tool_slots); in paint_contains_brush_slot()
|
/dports/graphics/blender/blender-2.91.0/source/blender/makesdna/ |
H A D | DNA_scene_types.h | 867 struct PaintToolSlot *tool_slots; member
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenloader/intern/ |
H A D | readfile.c | 4267 if (p->tool_slots[i].brush != NULL) { in link_paint() 4268 BLO_read_id_address(reader, sce->id.lib, &p->tool_slots[i].brush); in link_paint() 4596 BLO_read_data_address(reader, &p->tool_slots); in direct_link_paint() 4600 if (p->tool_slots && MEM_allocN_len(p->tool_slots) < expected_size) { in direct_link_paint() 4601 MEM_freeN(p->tool_slots); in direct_link_paint() 4602 p->tool_slots = MEM_callocN(expected_size, "PaintToolSlot"); in direct_link_paint()
|
H A D | writefile.c | 1462 BLO_write_struct_array(writer, PaintToolSlot, p->tool_slots_len, p->tool_slots); in write_paint()
|