|
Blender
V2.93
|
#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_alloca.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_editmesh.h"#include "BKE_mesh.h"#include "BKE_report.h"#include "DEG_depsgraph.h"#include "RNA_access.h"#include "RNA_define.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 117 of file mesh_data.c.
|
static |
Definition at line 118 of file mesh_data.c.
References BKE_mesh_update_customdata_pointers(), BLI_assert, BMEditMesh::bm, BM_data_layer_free_n(), BM_FACE, BM_LOOP, BM_VERT, CD_MLOOPCOL, CD_MLOOPUV, 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_texture_remove_index().
| int ED_mesh_color_add | ( | Mesh * | me, |
| const char * | name, | ||
| const bool | active_set, | ||
| const bool | do_init | ||
| ) |
Definition at line 382 of file mesh_data.c.
References BKE_mesh_update_customdata_pointers(), BMEditMesh::bm, BM_data_layer_add_named(), BM_data_layer_copy(), CD_DEFAULT, CD_DUPLICATE, CD_MLOOPCOL, 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, MAX_MCOL, Mesh::mloopcol, NC_GEOM, ND_DATA, NULL, Mesh::totloop, and WM_main_add_notifier().
Referenced by mesh_vertex_color_add_exec(), and output_toggle_exec().
| bool ED_mesh_color_ensure | ( | struct Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 433 of file mesh_data.c.
References BKE_mesh_update_customdata_pointers(), BLI_assert, CD_DEFAULT, CD_MLOOPCOL, CustomData_add_layer_named(), DEG_id_tag_update(), Mesh::edit_mesh, Mesh::id, Mesh::ldata, Mesh::mloopcol, NULL, and Mesh::totloop.
Referenced by ED_vpaint_color_transform(), ed_vwpaintmode_enter_generic(), vertex_color_set(), vertex_color_smooth(), vertex_paint_from_weight(), and vpaint_stroke_test_start().
| bool ED_mesh_color_remove_active | ( | Mesh * | me | ) |
Definition at line 466 of file mesh_data.c.
References CD_MLOOPCOL, CustomData_get_active_layer(), ED_mesh_color_remove_index(), and GET_CD_DATA.
Referenced by mesh_vertex_color_remove_exec().
| bool ED_mesh_color_remove_index | ( | Mesh * | me, |
| const int | n | ||
| ) |
Definition at line 447 of file mesh_data.c.
References CD_MLOOPCOL, CustomData_get_layer_index_n(), DEG_id_tag_update(), delete_customdata_layer(), GET_CD_DATA, Mesh::id, if(), CustomData::layers, NC_GEOM, ND_DATA, NULL, and WM_main_add_notifier().
Referenced by ED_mesh_color_remove_active(), and ED_mesh_color_remove_named().
| bool ED_mesh_color_remove_named | ( | Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 475 of file mesh_data.c.
References CD_MLOOPCOL, CustomData_get_named_layer(), ED_mesh_color_remove_index(), and GET_CD_DATA.
Referenced by output_toggle_exec().
Definition at line 1360 of file mesh_data.c.
References C, CTX_data_pointer_get_type(), data, Object::data, PointerRNA::data, ED_object_active_context(), GS, ID_ME, if(), mesh, NULL, and RNA_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 1193 of file mesh_data.c.
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 1280 of file mesh_data.c.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_edges(), RPT_ERROR, and Mesh::totedge.
| void ED_mesh_geometry_clear | ( | Mesh * | mesh | ) |
Definition at line 1322 of file mesh_data.c.
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 1202 of file mesh_data.c.
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 1294 of file mesh_data.c.
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 1211 of file mesh_data.c.
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 1308 of file mesh_data.c.
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 1355 of file mesh_data.c.
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 1332 of file mesh_data.c.
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 | ||
| ) |
Definition at line 488 of file mesh_data.c.
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, MAX_MCOL, NC_GEOM, ND_DATA, NULL, Mesh::totvert, BMesh::vdata, and WM_main_add_notifier().
Referenced by mesh_sculpt_vertex_color_add_exec().
| bool ED_mesh_sculpt_color_ensure | ( | struct Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 540 of file mesh_data.c.
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, NULL, and Mesh::totvert.
| bool ED_mesh_sculpt_color_remove_active | ( | Mesh * | me | ) |
Definition at line 573 of file mesh_data.c.
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().
| bool ED_mesh_sculpt_color_remove_index | ( | Mesh * | me, |
| const int | n | ||
| ) |
Definition at line 554 of file mesh_data.c.
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, NULL, and WM_main_add_notifier().
Referenced by ED_mesh_sculpt_color_remove_active(), and ED_mesh_sculpt_color_remove_named().
| bool ED_mesh_sculpt_color_remove_named | ( | Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 582 of file mesh_data.c.
References CD_PROP_COLOR, CustomData_get_named_layer(), ED_mesh_sculpt_color_remove_index(), and GET_CD_DATA.
Definition at line 1038 of file mesh_data.c.
References BKE_mesh_calc_edges(), BKE_mesh_calc_edges_loose(), BKE_mesh_calc_normals(), 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().
Definition at line 246 of file mesh_data.c.
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().
| void ED_mesh_uv_loop_reset_ex | ( | struct Mesh * | me, |
| const int | layernum | ||
| ) |
Definition at line 212 of file mesh_data.c.
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_loop_reset(), and ED_mesh_uv_texture_add().
| int ED_mesh_uv_texture_add | ( | Mesh * | me, |
| const char * | name, | ||
| const bool | active_set, | ||
| const bool | do_init | ||
| ) |
Definition at line 257 of file mesh_data.c.
References BKE_mesh_update_customdata_pointers(), 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, NULL, Mesh::totloop, and WM_main_add_notifier().
Referenced by ED_mesh_uv_texture_ensure(), ED_uvedit_ensure_uvs(), and mesh_uv_texture_add_exec().
| void ED_mesh_uv_texture_ensure | ( | struct Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 318 of file mesh_data.c.
References BMEditMesh::bm, CD_MLOOPUV, CustomData_number_of_layers(), ED_mesh_uv_texture_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().
| bool ED_mesh_uv_texture_remove_active | ( | Mesh * | me | ) |
Definition at line 359 of file mesh_data.c.
References CD_MLOOPUV, CustomData_get_active_layer(), ED_mesh_uv_texture_remove_index(), and GET_CD_DATA.
Referenced by mesh_uv_texture_remove_exec().
| bool ED_mesh_uv_texture_remove_index | ( | Mesh * | me, |
| const int | n | ||
| ) |
Definition at line 339 of file mesh_data.c.
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, NULL, and WM_main_add_notifier().
Referenced by ED_mesh_uv_texture_remove_active(), and ED_mesh_uv_texture_remove_named().
| bool ED_mesh_uv_texture_remove_named | ( | Mesh * | me, |
| const char * | name | ||
| ) |
Definition at line 370 of file mesh_data.c.
References CD_MLOOPUV, CustomData_get_named_layer(), ED_mesh_uv_texture_remove_index(), and GET_CD_DATA.
| void ED_mesh_verts_add | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count | ||
| ) |
Definition at line 1184 of file mesh_data.c.
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 1266 of file mesh_data.c.
References BKE_report(), count, Mesh::edit_mesh, mesh, mesh_remove_verts(), RPT_ERROR, and Mesh::totvert.
|
static |
Definition at line 594 of file mesh_data.c.
References C, data, Object::data, ED_object_context(), ID_IS_LINKED, NULL, OB_MESH, return(), and Object::type.
Referenced by MESH_OT_sculpt_vertex_color_add(), MESH_OT_sculpt_vertex_color_remove(), MESH_OT_uv_texture_add(), MESH_OT_uv_texture_remove(), MESH_OT_vertex_color_add(), and MESH_OT_vertex_color_remove().
|
static |
Definition at line 1088 of file mesh_data.c.
References 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(), CustomData_MeshMasks::emask, MEdge::flag, len, ME_EDGEDRAW, ME_EDGERENDER, Mesh::medge, mesh, NULL, SELECT, and Mesh::totedge.
Referenced by ED_mesh_edges_add().
|
static |
Definition at line 1121 of file mesh_data.c.
References 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, NULL, and Mesh::totloop.
Referenced by ED_mesh_loops_add().
|
static |
Definition at line 1147 of file mesh_data.c.
References 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, NULL, CustomData_MeshMasks::pmask, and Mesh::totpoly.
Referenced by ED_mesh_polys_add().
|
static |
Definition at line 1057 of file mesh_data.c.
References 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, NULL, SELECT, Mesh::totvert, and CustomData_MeshMasks::vmask.
Referenced by ED_mesh_verts_add().
|
static |
Definition at line 781 of file mesh_data.c.
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 935 of file mesh_data.c.
References BKE_edges_sharp_from_angle_set(), BKE_mesh_calc_normals_poly(), BKE_mesh_has_custom_loop_normals(), 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, float(), GET_CD_DATA, Mesh::id, ME_AUTOSMOOTH, Mesh::medge, MEM_freeN, MEM_mallocN, Mesh::mloop, Mesh::mpoly, Mesh::mvert, NC_GEOM, ND_DATA, NULL, 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 1007 of file mesh_data.c.
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(), NULL, and OPERATOR_CANCELLED.
Referenced by MESH_OT_customdata_custom_splitnormals_clear().
|
static |
Definition at line 58 of file mesh_data.c.
References BLI_assert, BMEditMesh::bm, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, data, BMesh::edata, Mesh::edit_mesh, BMesh::ldata, Mesh::ldata, NULL, BMesh::pdata, BMesh::totedge, Mesh::totedge, BMesh::totface, BMesh::totloop, Mesh::totloop, Mesh::totpoly, BMesh::totvert, Mesh::totvert, and BMesh::vdata.
Referenced by delete_customdata_layer(), and mesh_customdata_clear_exec__internal().
|
static |
Definition at line 831 of file mesh_data.c.
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().
|
static |
Definition at line 807 of file mesh_data.c.
References C, CD_GRID_PAINT_MASK, CD_PAINT_MASK, CustomData_has_layer(), data, Object::data, ED_object_context(), GET_CD_DATA, ID_IS_LINKED, Object::mode, OB_MESH, OB_MODE_SCULPT, and Object::type.
Referenced by MESH_OT_customdata_mask_clear().
|
static |
Definition at line 881 of file mesh_data.c.
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().
|
static |
Definition at line 876 of file mesh_data.c.
References C, and mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_add().
|
static |
Definition at line 914 of file mesh_data.c.
References BM_VERT, C, CD_MVERT_SKIN, and mesh_customdata_clear_exec__internal().
Referenced by MESH_OT_customdata_skin_clear().
|
static |
Definition at line 909 of file mesh_data.c.
References C, and mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_clear().
|
static |
Clear Skin
Definition at line 862 of file mesh_data.c.
References C, CD_MVERT_SKIN, CustomData_has_layer(), data, Object::data, ED_object_context(), GET_CD_DATA, ID_IS_LINKED, 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 992 of file mesh_data.c.
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 1021 of file mesh_data.c.
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 842 of file mesh_data.c.
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 894 of file mesh_data.c.
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 919 of file mesh_data.c.
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 737 of file mesh_data.c.
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 764 of file mesh_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_sculpt_vertex_color_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
| void MESH_OT_uv_texture_add | ( | wmOperatorType * | ot | ) |
Definition at line 619 of file mesh_data.c.
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 652 of file mesh_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_uv_texture_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
| void MESH_OT_vertex_color_add | ( | wmOperatorType * | ot | ) |
Definition at line 681 of file mesh_data.c.
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 708 of file mesh_data.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, layers_poll(), mesh_vertex_color_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
|
static |
Definition at line 1236 of file mesh_data.c.
References CustomData_free_elem(), len, mesh, and Mesh::totedge.
Referenced by ED_mesh_edges_remove(), and ED_mesh_geometry_clear().
|
static |
Definition at line 1246 of file mesh_data.c.
References CustomData_free_elem(), Mesh::ldata, len, mesh, and Mesh::totloop.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_loops_remove().
|
static |
Definition at line 1256 of file mesh_data.c.
References CustomData_free_elem(), len, mesh, and Mesh::totpoly.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_polys_remove().
|
static |
Definition at line 1226 of file mesh_data.c.
References CustomData_free_elem(), len, mesh, and Mesh::totvert.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_verts_remove().
|
static |
Definition at line 725 of file mesh_data.c.
References C, Object::data, ED_mesh_sculpt_color_add(), ED_object_context(), NULL, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_sculpt_vertex_color_add().
|
static |
Definition at line 752 of file mesh_data.c.
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().
|
static |
Definition at line 146 of file mesh_data.c.
References cosf, float(), len, M_PI, and sinf.
Referenced by mesh_uv_reset_bmface(), and mesh_uv_reset_mface().
|
static |
Definition at line 186 of file mesh_data.c.
References BLI_array_alloca, BM_ELEM_CD_GET_VOID_P, BM_ITER_ELEM_INDEX, BM_LOOPS_OF_FACE, l, BMFace::len, and mesh_uv_reset_array().
Referenced by ED_mesh_uv_loop_reset_ex().
Definition at line 200 of file mesh_data.c.
References BLI_array_alloca, MPoly::loopstart, mesh_uv_reset_array(), MPoly::totloop, and MLoopUV::uv.
Referenced by ED_mesh_uv_loop_reset_ex().
|
static |
Definition at line 601 of file mesh_data.c.
References C, CTX_data_scene(), Object::data, ED_mesh_uv_texture_add(), ED_object_context(), ED_paint_proj_mesh_data_check(), Object::mode, NC_SCENE, ND_TOOLSETTINGS, NULL, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by MESH_OT_uv_texture_add().
|
static |
Definition at line 634 of file mesh_data.c.
References C, CTX_data_scene(), Object::data, ED_mesh_uv_texture_remove_active(), ED_object_context(), ED_paint_proj_mesh_data_check(), Object::mode, NC_SCENE, ND_TOOLSETTINGS, NULL, 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 669 of file mesh_data.c.
References C, Object::data, ED_mesh_color_add(), ED_object_context(), NULL, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_vertex_color_add().
|
static |
Definition at line 696 of file mesh_data.c.
References C, Object::data, ED_mesh_color_remove_active(), ED_object_context(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_vertex_color_remove().