Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_view3d_types.h"
#include "BLI_array.hh"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_attribute.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_editmesh.h"
#include "BKE_mesh.h"
#include "BKE_mesh_runtime.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_paint.h"
#include "ED_screen.h"
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "mesh_intern.h"
Go to the source code of this file.
Macros | |
#define | GET_CD_DATA(me, data) ((me)->edit_mesh ? &(me)->edit_mesh->bm->data : &(me)->data) |
Definition at line 106 of file mesh_data.cc.
|
static |
Definition at line 107 of file mesh_data.cc.
References BKE_mesh_update_customdata_pointers(), BLI_assert, BMEditMesh::bm, BM_data_layer_free_n(), BM_FACE, BM_LOOP, BM_VERT, CD_MLOOPUV, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CustomData_free_layer(), CustomData_get_layer_index(), data, Mesh::edit_mesh, ELEM, mesh_customdata_get_type(), type, and CustomDataLayer::type.
Referenced by ED_mesh_color_remove_index(), ED_mesh_sculpt_color_remove_index(), and ED_mesh_uv_remove_index().
int ED_mesh_color_add | ( | Mesh * | me, |
const char * | name, | ||
const bool | active_set, | ||
const bool | do_init, | ||
ReportList * | UNUSEDreports | ||
) |
Definition at line 371 of file mesh_data.cc.
References BKE_mesh_update_customdata_pointers(), BMEditMesh::bm, BM_data_layer_add_named(), BM_data_layer_copy(), CD_DEFAULT, CD_DUPLICATE, CD_PROP_BYTE_COLOR, CustomData_add_layer_named(), CustomData_get_active_layer(), CustomData_number_of_layers(), CustomData_set_layer_active(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, BMesh::ldata, Mesh::ldata, Mesh::mloopcol, NC_GEOM, ND_DATA, Mesh::totloop, and WM_main_add_notifier().
Referenced by mesh_vertex_color_add_exec().
Definition at line 423 of file mesh_data.cc.
References BKE_id_attributes_active_color_get(), BKE_id_attributes_active_color_set(), BKE_mesh_update_customdata_pointers(), BLI_assert, CD_DEFAULT, CD_PROP_BYTE_COLOR, CustomData_add_layer_named(), CustomData_get_layer_index(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, CustomData::layers, Mesh::ldata, and Mesh::totloop.
Referenced by ed_vwpaintmode_enter_generic(), vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), vertex_color_levels_exec(), vertex_color_set(), vertex_color_smooth(), vertex_paint_from_weight(), and vpaint_stroke_test_start().
Definition at line 461 of file mesh_data.cc.
References CD_PROP_BYTE_COLOR, CustomData_get_active_layer(), ED_mesh_color_remove_index(), and GET_CD_DATA.
Referenced by mesh_vertex_color_remove_exec().
Definition at line 442 of file mesh_data.cc.
References CD_PROP_BYTE_COLOR, CustomData_get_layer_index_n(), DEG_id_tag_update(), delete_customdata_layer(), GET_CD_DATA, Mesh::id, if(), CustomData::layers, NC_GEOM, ND_DATA, and WM_main_add_notifier().
Referenced by ED_mesh_color_remove_active(), and ED_mesh_color_remove_named().
Definition at line 470 of file mesh_data.cc.
References CD_PROP_BYTE_COLOR, CustomData_get_named_layer(), ED_mesh_color_remove_index(), and GET_CD_DATA.
Referenced by output_toggle_exec().
Returns the pinned mesh, the mesh from the pinned object, or the mesh from the active object.
Definition at line 1406 of file mesh_data.cc.
References C, CTX_data_pointer_get_type(), data, Object::data, PointerRNA::data, ED_object_active_context(), GS, ID_ME, if(), and mesh.
Referenced by ED_operator_editable_mesh(), mesh_customdata_clear_exec__internal(), mesh_customdata_custom_splitnormals_add_exec(), and mesh_customdata_custom_splitnormals_clear_exec().
void ED_mesh_edges_add | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1239 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_add_edges(), and RPT_ERROR.
void ED_mesh_edges_remove | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1326 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_edges(), RPT_ERROR, and Mesh::totedge.
Definition at line 1368 of file mesh_data.cc.
References mesh, mesh_remove_edges(), mesh_remove_loops(), mesh_remove_polys(), mesh_remove_verts(), Mesh::totedge, Mesh::totloop, Mesh::totpoly, and Mesh::totvert.
Referenced by mesh_separate_loose().
void ED_mesh_loops_add | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1248 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_add_loops(), and RPT_ERROR.
void ED_mesh_loops_remove | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1340 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_loops(), RPT_ERROR, and Mesh::totloop.
void ED_mesh_polys_add | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1257 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_add_polys(), and RPT_ERROR.
void ED_mesh_polys_remove | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1354 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_polys(), RPT_ERROR, and Mesh::totpoly.
void ED_mesh_report_mirror | ( | wmOperator * | op, |
int | totmirr, | ||
int | totfail | ||
) |
Definition at line 1401 of file mesh_data.cc.
References ED_mesh_report_mirror_ex(), and SCE_SELECT_VERTEX.
Referenced by shape_key_mirror_exec(), and vertex_group_mirror_exec().
void ED_mesh_report_mirror_ex | ( | wmOperator * | op, |
int | totmirr, | ||
int | totfail, | ||
char | selectmode | ||
) |
Definition at line 1378 of file mesh_data.cc.
References BKE_reportf(), wmOperator::reports, RPT_INFO, RPT_WARNING, SCE_SELECT_EDGE, and SCE_SELECT_VERTEX.
Referenced by ED_mesh_report_mirror(), and edbm_select_mirror_exec().
int ED_mesh_sculpt_color_add | ( | Mesh * | me, |
const char * | name, | ||
const bool | active_set, | ||
const bool | do_init, | ||
ReportList * | UNUSEDreports | ||
) |
Definition at line 509 of file mesh_data.cc.
References BKE_mesh_update_customdata_pointers(), BMEditMesh::bm, BM_data_layer_add_named(), BM_data_layer_copy(), CD_DEFAULT, CD_DUPLICATE, CD_PROP_COLOR, CustomData_add_layer_named(), CustomData_get_active_layer(), CustomData_get_layer(), CustomData_has_layer(), CustomData_number_of_layers(), CustomData_set_layer_active(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, NC_GEOM, ND_DATA, Mesh::totvert, BMesh::vdata, Mesh::vdata, and WM_main_add_notifier().
Referenced by mesh_sculpt_vertex_color_add_exec().
Definition at line 563 of file mesh_data.cc.
References BKE_mesh_update_customdata_pointers(), BLI_assert, CD_DEFAULT, CD_PROP_COLOR, CustomData_add_layer_named(), CustomData_has_layer(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, Mesh::mloopcol, Mesh::totvert, and Mesh::vdata.
Definition at line 596 of file mesh_data.cc.
References CD_PROP_COLOR, CustomData_get_active_layer(), ED_mesh_sculpt_color_remove_index(), and GET_CD_DATA.
Referenced by mesh_sculpt_vertex_color_remove_exec().
Definition at line 577 of file mesh_data.cc.
References CD_PROP_COLOR, CustomData_get_layer_index_n(), DEG_id_tag_update(), delete_customdata_layer(), GET_CD_DATA, Mesh::id, if(), CustomData::layers, NC_GEOM, ND_DATA, and WM_main_add_notifier().
Referenced by ED_mesh_sculpt_color_remove_active(), and ED_mesh_sculpt_color_remove_named().
Definition at line 605 of file mesh_data.cc.
References CD_PROP_COLOR, CustomData_get_named_layer(), ED_mesh_sculpt_color_remove_index(), and GET_CD_DATA.
Definition at line 1075 of file mesh_data.cc.
References BKE_mesh_calc_edges(), BKE_mesh_calc_edges_loose(), BKE_mesh_normals_tag_dirty(), BKE_mesh_tessface_clear(), C, DEG_id_tag_update(), Mesh::id, mesh, NC_GEOM, ND_DATA, Mesh::totedge, Mesh::totface, Mesh::totpoly, and WM_event_add_notifier().
int ED_mesh_uv_add | ( | Mesh * | me, |
const char * | name, | ||
const bool | active_set, | ||
const bool | do_init, | ||
ReportList * | reports | ||
) |
Definition at line 244 of file mesh_data.cc.
References BKE_mesh_update_customdata_pointers(), BKE_reportf(), BMEditMesh::bm, BM_data_layer_add_named(), BM_data_layer_copy(), CD_DEFAULT, CD_DUPLICATE, CD_MLOOPUV, CustomData_add_layer_named(), CustomData_get_active_layer(), CustomData_number_of_layers(), CustomData_set_layer_active(), DEG_id_tag_update(), ED_mesh_uv_loop_reset_ex(), Mesh::edit_mesh, Mesh::id, BMesh::ldata, Mesh::ldata, MAX_MTFACE, Mesh::mloopuv, NC_GEOM, ND_DATA, RPT_WARNING, Mesh::totloop, and WM_main_add_notifier().
Referenced by ED_mesh_uv_ensure(), ED_uvedit_ensure_uvs(), and mesh_uv_texture_add_exec().
Definition at line 310 of file mesh_data.cc.
References BMEditMesh::bm, CD_MLOOPUV, CustomData_number_of_layers(), ED_mesh_uv_add(), Mesh::edit_mesh, BMesh::ldata, and Mesh::ldata.
Referenced by add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cube_gizmo_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), and ED_uvedit_add_simple_uvs().
Definition at line 234 of file mesh_data.cc.
References C, CD_MLOOPUV, CustomData_get_active_layer(), ED_mesh_uv_loop_reset_ex(), GET_CD_DATA, NC_GEOM, ND_DATA, and WM_event_add_notifier().
Referenced by reset_exec().
Without a bContext, called when UV-editing.
Definition at line 200 of file mesh_data.cc.
References BLI_assert, BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_MESH, CD_MLOOPUV, CustomData_get_layer_n(), CustomData_get_n_offset(), CustomData_has_layer(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, BMesh::ldata, Mesh::ldata, mesh_uv_reset_bmface(), mesh_uv_reset_mface(), Mesh::mpoly, and Mesh::totpoly.
Referenced by ED_mesh_uv_add(), and ED_mesh_uv_loop_reset().
Definition at line 351 of file mesh_data.cc.
References CD_MLOOPUV, CustomData_get_active_layer(), ED_mesh_uv_remove_index(), and GET_CD_DATA.
Referenced by mesh_uv_texture_remove_exec().
Definition at line 331 of file mesh_data.cc.
References CD_MLOOPUV, CustomData_get_layer_index_n(), DEG_id_tag_update(), delete_customdata_layer(), GET_CD_DATA, Mesh::id, if(), CustomData::layers, NC_GEOM, ND_DATA, and WM_main_add_notifier().
Referenced by ED_mesh_uv_remove_active(), and ED_mesh_uv_remove_named().
Definition at line 361 of file mesh_data.cc.
References CD_MLOOPUV, CustomData_get_named_layer(), ED_mesh_uv_remove_index(), and GET_CD_DATA.
void ED_mesh_verts_add | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1230 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_add_verts(), and RPT_ERROR.
void ED_mesh_verts_remove | ( | Mesh * | mesh, |
ReportList * | reports, | ||
int | count | ||
) |
Definition at line 1312 of file mesh_data.cc.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_verts(), RPT_ERROR, and Mesh::totvert.
Definition at line 482 of file mesh_data.cc.
References C, data, Object::data, ED_object_context(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by MESH_OT_sculpt_vertex_color_add(), MESH_OT_uv_texture_add(), MESH_OT_vertex_color_add(), sculpt_vertex_color_remove_poll(), uv_texture_remove_poll(), and vertex_color_remove_poll().
Definition at line 1128 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), BKE_mesh_update_customdata_pointers(), CD_CALLOC, CD_DEFAULT, CD_MASK_MESH, CD_MEDGE, CustomData_add_layer(), CustomData_copy(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer(), Mesh::edata, CustomData_MeshMasks::emask, MEdge::flag, len, ME_EDGEDRAW, ME_EDGERENDER, Mesh::medge, mesh, SELECT, and Mesh::totedge.
Referenced by ED_mesh_edges_add().
Definition at line 1163 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), BKE_mesh_update_customdata_pointers(), CD_CALLOC, CD_DEFAULT, CD_MASK_MESH, CD_MLOOP, CustomData_add_layer(), CustomData_copy(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer(), Mesh::ldata, len, CustomData_MeshMasks::lmask, mesh, and Mesh::totloop.
Referenced by ED_mesh_loops_add().
Definition at line 1191 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), BKE_mesh_update_customdata_pointers(), CD_CALLOC, CD_DEFAULT, CD_MASK_MESH, CD_MPOLY, CustomData_add_layer(), CustomData_copy(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer(), MPoly::flag, len, ME_FACE_SEL, mesh, Mesh::mpoly, Mesh::pdata, CustomData_MeshMasks::pmask, and Mesh::totpoly.
Referenced by ED_mesh_polys_add().
Definition at line 1095 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), BKE_mesh_update_customdata_pointers(), CD_CALLOC, CD_DEFAULT, CD_MASK_MESH, CD_MVERT, CustomData_add_layer(), CustomData_copy(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer(), MVert::flag, len, mesh, Mesh::mvert, SELECT, Mesh::totvert, Mesh::vdata, and CustomData_MeshMasks::vmask.
Referenced by ED_mesh_verts_add().
|
static |
Definition at line 831 of file mesh_data.cc.
References BLI_assert, BMEditMesh::bm, BM_data_layer_free(), C, CustomData_free_layers(), CustomData_has_layer(), CustomData_layertype_is_singleton(), data, DEG_id_tag_update(), ED_mesh_context(), Mesh::edit_mesh, Mesh::id, mesh_customdata_get_type(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, type, and WM_event_add_notifier().
Referenced by mesh_customdata_custom_splitnormals_clear_exec(), mesh_customdata_mask_clear_exec(), and mesh_customdata_skin_clear_exec().
|
static |
Definition at line 986 of file mesh_data.cc.
References BKE_edges_sharp_from_angle_set(), BKE_mesh_has_custom_loop_normals(), BKE_mesh_poly_normals_ensure(), BMEditMesh::bm, BM_data_layer_add(), BM_edges_sharp_from_angle_set(), C, CD_CUSTOMLOOPNORMAL, CD_DEFAULT, CustomData_add_layer(), data, DEG_id_tag_update(), ED_mesh_context(), Mesh::edit_mesh, Mesh::flag, GET_CD_DATA, Mesh::id, ME_AUTOSMOOTH, Mesh::medge, Mesh::mloop, Mesh::mpoly, Mesh::mvert, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, Mesh::smoothresh, Mesh::totedge, Mesh::totloop, Mesh::totpoly, Mesh::totvert, and WM_event_add_notifier().
Referenced by MESH_OT_customdata_custom_splitnormals_add().
|
static |
Definition at line 1044 of file mesh_data.cc.
References BKE_lnor_spacearr_clear(), BKE_mesh_has_custom_loop_normals(), BMEditMesh::bm, BM_LOOP, C, CD_CUSTOMLOOPNORMAL, ED_mesh_context(), Mesh::edit_mesh, BMesh::lnor_spacearr, mesh_customdata_clear_exec__internal(), and OPERATOR_CANCELLED.
Referenced by MESH_OT_customdata_custom_splitnormals_clear().
|
static |
Definition at line 48 of file mesh_data.cc.
References BLI_assert, BMEditMesh::bm, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, data, BMesh::edata, Mesh::edata, Mesh::edit_mesh, BMesh::ldata, Mesh::ldata, BMesh::pdata, Mesh::pdata, BMesh::totedge, Mesh::totedge, BMesh::totface, BMesh::totloop, Mesh::totloop, Mesh::totpoly, BMesh::totvert, Mesh::totvert, BMesh::vdata, and Mesh::vdata.
Referenced by delete_customdata_layer(), and mesh_customdata_clear_exec__internal().
|
static |
Definition at line 881 of file mesh_data.cc.
References BM_LOOP, BM_VERT, C, CD_GRID_PAINT_MASK, CD_PAINT_MASK, mesh_customdata_clear_exec__internal(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_customdata_mask_clear().
Definition at line 857 of file mesh_data.cc.
References C, CD_GRID_PAINT_MASK, CD_PAINT_MASK, CustomData_has_layer(), data, Object::data, ED_object_context(), GET_CD_DATA, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, Object::mode, OB_MESH, OB_MODE_SCULPT, and Object::type.
Referenced by MESH_OT_customdata_mask_clear().
|
static |
Definition at line 932 of file mesh_data.cc.
References BKE_mesh_ensure_skin_customdata(), C, Object::data, DEG_id_tag_update(), ED_object_context(), Mesh::id, NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_customdata_skin_add().
Definition at line 927 of file mesh_data.cc.
References C, and mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_add().
|
static |
Definition at line 965 of file mesh_data.cc.
References BM_VERT, C, CD_MVERT_SKIN, and mesh_customdata_clear_exec__internal().
Referenced by MESH_OT_customdata_skin_clear().
Definition at line 960 of file mesh_data.cc.
References C, and mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_clear().
|
static |
Clear Skin
Definition at line 913 of file mesh_data.cc.
References C, CD_MVERT_SKIN, CustomData_has_layer(), data, Object::data, ED_object_context(), GET_CD_DATA, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by mesh_customdata_skin_add_poll(), and mesh_customdata_skin_clear_poll().
void MESH_OT_customdata_custom_splitnormals_add | ( | wmOperatorType * | ot | ) |
Definition at line 1029 of file mesh_data.cc.
References wmOperatorType::description, ED_operator_editable_mesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_customdata_custom_splitnormals_add_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_customdata_custom_splitnormals_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1058 of file mesh_data.cc.
References wmOperatorType::description, ED_operator_editable_mesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_customdata_custom_splitnormals_clear_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_customdata_mask_clear | ( | wmOperatorType * | ot | ) |
Definition at line 892 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_customdata_mask_clear_exec(), mesh_customdata_mask_clear_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_customdata_skin_add | ( | wmOperatorType * | ot | ) |
Definition at line 945 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_customdata_skin_add_exec(), mesh_customdata_skin_add_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_customdata_skin_clear | ( | wmOperatorType * | ot | ) |
Definition at line 970 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_customdata_skin_clear_exec(), mesh_customdata_skin_clear_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_sculpt_vertex_color_add | ( | wmOperatorType * | ot | ) |
Definition at line 787 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_sculpt_vertex_color_add_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_sculpt_vertex_color_remove | ( | wmOperatorType * | ot | ) |
Definition at line 814 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_sculpt_vertex_color_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and sculpt_vertex_color_remove_poll().
Referenced by ED_operatortypes_mesh().
void MESH_OT_uv_texture_add | ( | wmOperatorType * | ot | ) |
Definition at line 652 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_uv_texture_add_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_uv_texture_remove | ( | wmOperatorType * | ot | ) |
Definition at line 685 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_uv_texture_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and uv_texture_remove_poll().
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertex_color_add | ( | wmOperatorType * | ot | ) |
Definition at line 731 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_vertex_color_add_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertex_color_remove | ( | wmOperatorType * | ot | ) |
Definition at line 758 of file mesh_data.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_vertex_color_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and vertex_color_remove_poll().
Referenced by ED_operatortypes_mesh().
Definition at line 1282 of file mesh_data.cc.
References CustomData_free_elem(), Mesh::edata, len, mesh, and Mesh::totedge.
Referenced by ED_mesh_edges_remove(), and ED_mesh_geometry_clear().
Definition at line 1292 of file mesh_data.cc.
References CustomData_free_elem(), Mesh::ldata, len, mesh, and Mesh::totloop.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_loops_remove().
Definition at line 1302 of file mesh_data.cc.
References CustomData_free_elem(), len, mesh, Mesh::pdata, and Mesh::totpoly.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_polys_remove().
Definition at line 1272 of file mesh_data.cc.
References CustomData_free_elem(), len, mesh, Mesh::totvert, and Mesh::vdata.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_verts_remove().
|
static |
Definition at line 775 of file mesh_data.cc.
References C, Object::data, ED_mesh_sculpt_color_add(), ED_object_context(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and wmOperator::reports.
Referenced by MESH_OT_sculpt_vertex_color_add().
|
static |
Definition at line 802 of file mesh_data.cc.
References C, Object::data, ED_mesh_sculpt_color_remove_active(), ED_object_context(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_sculpt_vertex_color_remove().
Definition at line 135 of file mesh_data.cc.
References cosf, float(), len, M_PI, and sinf.
Referenced by mesh_uv_reset_bmface(), and mesh_uv_reset_mface().
Definition at line 175 of file mesh_data.cc.
References BM_ELEM_CD_GET_VOID_P, BM_ITER_ELEM_INDEX, BM_LOOPS_OF_FACE, blender::Array< T, InlineBufferCapacity, Allocator >::data(), l, BMFace::len, and mesh_uv_reset_array().
Referenced by ED_mesh_uv_loop_reset_ex().
Definition at line 189 of file mesh_data.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::data(), MPoly::loopstart, mesh_uv_reset_array(), MPoly::totloop, and MLoopUV::uv.
Referenced by ED_mesh_uv_loop_reset_ex().
|
static |
Definition at line 634 of file mesh_data.cc.
References C, CTX_data_scene(), Object::data, ED_mesh_uv_add(), ED_object_context(), ED_paint_proj_mesh_data_check(), Object::mode, NC_SCENE, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, scene, and WM_event_add_notifier().
Referenced by MESH_OT_uv_texture_add().
|
static |
Definition at line 667 of file mesh_data.cc.
References C, CTX_data_scene(), Object::data, ED_mesh_uv_remove_active(), ED_object_context(), ED_paint_proj_mesh_data_check(), Object::mode, NC_SCENE, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by MESH_OT_uv_texture_remove().
|
static |
Definition at line 719 of file mesh_data.cc.
References C, Object::data, ED_mesh_color_add(), ED_object_context(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and wmOperator::reports.
Referenced by MESH_OT_vertex_color_add().
|
static |
Definition at line 746 of file mesh_data.cc.
References C, Object::data, ED_mesh_color_remove_active(), ED_object_context(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_vertex_color_remove().
Definition at line 492 of file mesh_data.cc.
References blender::compositor::active, C, CD_PROP_COLOR, CustomData_get_active_layer(), Object::data, ED_object_context(), GET_CD_DATA, and layers_poll().
Referenced by MESH_OT_sculpt_vertex_color_remove().
Definition at line 617 of file mesh_data.cc.
References blender::compositor::active, C, CD_MLOOPUV, CustomData_get_active_layer(), Object::data, ED_object_context(), GET_CD_DATA, and layers_poll().
Referenced by MESH_OT_uv_texture_remove().
Definition at line 702 of file mesh_data.cc.
References blender::compositor::active, C, CD_PROP_BYTE_COLOR, CustomData_get_active_layer(), Object::data, ED_object_context(), GET_CD_DATA, and layers_poll().
Referenced by MESH_OT_vertex_color_remove().