|
Blender V4.5
|
#include "MEM_guardedalloc.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_array.hh"#include "BKE_attribute.hh"#include "BKE_context.hh"#include "BKE_customdata.hh"#include "BKE_editmesh.hh"#include "BKE_key.hh"#include "BKE_library.hh"#include "BKE_mesh.hh"#include "BKE_mesh_runtime.hh"#include "BKE_report.hh"#include "DEG_depsgraph.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "BLT_translation.hh"#include "ED_mesh.hh"#include "ED_object.hh"#include "ED_paint.hh"#include "ED_screen.hh"#include "GEO_mesh_split_edges.hh"#include "mesh_intern.hh"Go to the source code of this file.
| int ED_mesh_color_add | ( | Mesh * | mesh, |
| const char * | name, | ||
| const bool | active_set, | ||
| const bool | do_init, | ||
| ReportList * | reports ) |
Definition at line 382 of file mesh_data.cc.
References Mesh::active_color_attribute, BKE_attribute_new(), BKE_id_attributes_active_color_set(), BKE_id_attributes_color_find(), bm, BM_data_layer_copy(), BM_LOOP, CD_PROP_BYTE_COLOR, Mesh::corners_num, CustomData_get_elem_size(), CustomData_get_named_layer(), CustomDataLayer::data, data, DEG_id_tag_update(), AttributeOwner::from_id(), Mesh::id, BMesh::ldata, mesh, mesh_customdata_get_type(), CustomDataLayer::name, name, NC_GEOM, ND_DATA, Mesh::runtime, and WM_main_add_notifier().
Referenced by output_toggle_exec().
| bool ED_mesh_color_ensure | ( | Mesh * | mesh, |
| const char * | name ) |
Definition at line 424 of file mesh_data.cc.
References Mesh::active_color_attribute, BKE_attribute_calc_unique_name(), BKE_color_attribute_supported(), BKE_id_attributes_active_color_set(), BKE_id_attributes_default_color_set(), BKE_mesh_tessface_clear(), BLI_assert, CD_PROP_BYTE_COLOR, DEG_id_tag_update(), AttributeOwner::from_id(), Mesh::id, mesh, name, Mesh::runtime, and unique_name().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), vertex_color_levels_exec(), vertex_color_smooth(), vertex_paint_from_weight(), and vpaint_stroke_test_start().
Returns the pinned mesh, the mesh from the pinned object, or the mesh from the active object.
Definition at line 1131 of file mesh_data.cc.
References blender::ed::object::context_active_object(), CTX_data_pointer_get_type(), data, Object::data, PointerRNA::data, GS, ID_ME, and mesh.
Referenced by ED_operator_editable_mesh(), blender::ed::mesh::mesh_active_attribute_poll(), mesh_customdata_clear_exec__internal(), mesh_customdata_custom_splitnormals_add_exec(), mesh_customdata_custom_splitnormals_clear_exec(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), and blender::ed::mesh::set_attribute::mesh_set_attribute_ui().
| void ED_mesh_edges_add | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 953 of file mesh_data.cc.
References BKE_report(), count, mesh, mesh_add_edges(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_edges_remove | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 1044 of file mesh_data.cc.
References BKE_report(), count, Mesh::edges_num, mesh, mesh_remove_edges(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_faces_add | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 971 of file mesh_data.cc.
References BKE_report(), count, mesh, mesh_add_faces(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_faces_remove | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 1072 of file mesh_data.cc.
References BKE_report(), count, Mesh::faces_num, mesh, mesh_remove_faces(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_geometry_clear | ( | Mesh * | mesh | ) |
Definition at line 1086 of file mesh_data.cc.
References Mesh::corners_num, Mesh::edges_num, Mesh::faces_num, mesh, mesh_remove_edges(), mesh_remove_faces(), mesh_remove_loops(), mesh_remove_verts(), and Mesh::verts_num.
Referenced by mesh_separate_loose().
Definition at line 1124 of file mesh_data.cc.
References BKE_keyblock_find_by_index(), BLI_assert, Mesh::key, and Mesh::runtime.
Referenced by blender::ed::object::shape_key_report_if_locked().
| void ED_mesh_loops_add | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 962 of file mesh_data.cc.
References BKE_report(), count, mesh, mesh_add_loops(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_loops_remove | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 1058 of file mesh_data.cc.
References BKE_report(), Mesh::corners_num, count, mesh, mesh_remove_loops(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_report_mirror | ( | wmOperator * | op, |
| int | totmirr, | ||
| int | totfail ) |
Definition at line 1119 of file mesh_data.cc.
References ED_mesh_report_mirror_ex(), and SCE_SELECT_VERTEX.
Referenced by blender::ed::object::shape_key_mirror_exec(), and blender::ed::object::vertex_group_mirror_exec().
| void ED_mesh_report_mirror_ex | ( | wmOperator * | op, |
| int | totmirr, | ||
| int | totfail, | ||
| char | selectmode ) |
Definition at line 1096 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().
| void ED_mesh_split_faces | ( | Mesh * | mesh | ) |
Split all edges that would appear sharp based on face and edge sharpness tags and the auto smooth angle.
Definition at line 1151 of file mesh_data.cc.
References Geometry::attributes, Mesh::edges_num, blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), blender::VArrayCommon< T >::materialize(), mesh, and range.
Referenced by blender::ed::object::bake_mesh_new_from_object().
| int ED_mesh_uv_add | ( | Mesh * | mesh, |
| const char * | name, | ||
| const bool | active_set, | ||
| const bool | do_init, | ||
| ReportList * | reports ) |
Definition at line 221 of file mesh_data.cc.
References BKE_attribute_calc_unique_name(), BKE_reportf(), BM_data_layer_add_named(), BM_data_layer_copy(), BM_uv_map_attr_select_and_pin_ensure(), CD_PROP_FLOAT2, CD_SET_DEFAULT, Mesh::corner_data, Mesh::corners_num, CustomData_add_layer_named(), CustomData_add_layer_named_with_data(), CustomData_get_active_layer(), CustomData_get_layer(), CustomData_has_layer(), CustomData_number_of_layers(), CustomData_set_layer_active(), DATA_, DEG_id_tag_update(), ED_mesh_uv_loop_reset_ex(), AttributeOwner::from_id(), Mesh::id, MAX_MTFACE, MEM_dupallocN(), mesh, name, NC_GEOM, ND_DATA, RPT_WARNING, Mesh::runtime, unique_name(), and WM_main_add_notifier().
Referenced by ED_mesh_uv_ensure(), mesh_uv_texture_add_exec(), and uvedit_ensure_uvs().
| void ED_mesh_uv_ensure | ( | Mesh * | mesh, |
| const char * | name ) |
Definition at line 364 of file mesh_data.cc.
References CD_PROP_FLOAT2, Mesh::corner_data, CustomData_number_of_layers(), ED_mesh_uv_add(), mesh, name, and Mesh::runtime.
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 211 of file mesh_data.cc.
References BM_LOOP, CD_PROP_FLOAT2, CustomData_get_active_layer(), ED_mesh_uv_loop_reset_ex(), mesh, mesh_customdata_get_type(), NC_GEOM, ND_DATA, and WM_event_add_notifier().
Referenced by reset_exec().
| void ED_mesh_uv_loop_reset_ex | ( | Mesh * | mesh, |
| int | layernum ) |
Without a bContext, called when UV-editing.
Definition at line 176 of file mesh_data.cc.
References BLI_assert, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_MESH, CD_PROP_FLOAT2, Mesh::corner_data, Mesh::corners_num, CustomData_get_layer_n_for_write(), CustomData_get_n_offset(), CustomData_has_layer(), DEG_id_tag_update(), Mesh::id, blender::offset_indices::OffsetIndices< T >::index_range(), mesh, mesh_uv_reset_bmface(), mesh_uv_reset_mface(), and Mesh::runtime.
Referenced by ED_mesh_uv_add(), and ED_mesh_uv_loop_reset().
| bool * ED_mesh_uv_map_edge_select_layer_ensure | ( | Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 349 of file mesh_data.cc.
References BKE_uv_map_edge_select_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), ensure_corner_boolean_attribute(), MAX_CUSTOMDATA_LAYER_NAME, and mesh.
| const bool * ED_mesh_uv_map_edge_select_layer_get | ( | const Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 310 of file mesh_data.cc.
References BKE_uv_map_edge_select_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), MAX_CUSTOMDATA_LAYER_NAME, mesh, and mesh_loop_boolean_custom_data_get_by_name().
| bool * ED_mesh_uv_map_pin_layer_ensure | ( | Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 356 of file mesh_data.cc.
References BKE_uv_map_pin_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), ensure_corner_boolean_attribute(), MAX_CUSTOMDATA_LAYER_NAME, and mesh.
| const bool * ED_mesh_uv_map_pin_layer_get | ( | const Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 322 of file mesh_data.cc.
References BKE_uv_map_pin_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), MAX_CUSTOMDATA_LAYER_NAME, mesh, and mesh_loop_boolean_custom_data_get_by_name().
| bool * ED_mesh_uv_map_vert_select_layer_ensure | ( | Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 342 of file mesh_data.cc.
References BKE_uv_map_vert_select_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), ensure_corner_boolean_attribute(), MAX_CUSTOMDATA_LAYER_NAME, and mesh.
| const bool * ED_mesh_uv_map_vert_select_layer_get | ( | const Mesh * | mesh, |
| const int | uv_index ) |
Definition at line 302 of file mesh_data.cc.
References BKE_uv_map_vert_select_name_get(), CD_PROP_FLOAT2, Mesh::corner_data, CustomData_get_layer_name(), MAX_CUSTOMDATA_LAYER_NAME, mesh, and mesh_loop_boolean_custom_data_get_by_name().
| void ED_mesh_verts_add | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 944 of file mesh_data.cc.
References BKE_report(), count, mesh, mesh_add_verts(), RPT_ERROR, and Mesh::runtime.
| void ED_mesh_verts_remove | ( | Mesh * | mesh, |
| ReportList * | reports, | ||
| int | count ) |
Definition at line 1030 of file mesh_data.cc.
References BKE_report(), count, mesh, mesh_remove_verts(), RPT_ERROR, Mesh::runtime, and Mesh::verts_num.
Definition at line 331 of file mesh_data.cc.
References CD_PROP_BOOL, CD_SET_DEFAULT, Mesh::corner_data, Mesh::corners_num, CustomData_add_layer_named(), CustomData_get_layer_named_for_write(), data, Mesh::faces_num, mesh, and name.
Referenced by ED_mesh_uv_map_edge_select_layer_ensure(), ED_mesh_uv_map_pin_layer_ensure(), and ED_mesh_uv_map_vert_select_layer_ensure().
|
static |
Definition at line 452 of file mesh_data.cc.
References blender::ed::object::context_object(), data, Object::data, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by MESH_OT_uv_texture_add(), and uv_texture_remove_poll().
|
static |
Definition at line 828 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), CD_MASK_MESH, CD_PROP_INT32_2D, CD_SET_DEFAULT, CustomData_add_layer_named(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer_named(), CustomData_init_layout_from(), Mesh::edge_data, Mesh::edges_num, CustomData_MeshMasks::emask, blender::bke::SpanAttributeWriter< T >::finish(), len, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), mesh, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by ED_mesh_edges_add().
|
static |
Definition at line 901 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), CD_MASK_MESH, CD_SET_DEFAULT, Mesh::corners_num, CustomData_copy_data(), CustomData_free(), CustomData_init_layout_from(), Mesh::face_data, Mesh::face_offset_indices, Mesh::faces_num, blender::bke::SpanAttributeWriter< T >::finish(), len, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), mesh, CustomData_MeshMasks::pmask, Mesh::runtime, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by ED_mesh_faces_add().
|
static |
Definition at line 864 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), CD_MASK_MESH, CD_PROP_INT32, CD_SET_DEFAULT, Mesh::corner_data, Mesh::corners_num, CustomData_add_layer_named(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer_named(), CustomData_init_layout_from(), Mesh::face_offset_indices, len, CustomData_MeshMasks::lmask, and mesh.
Referenced by ED_mesh_loops_add().
|
static |
Definition at line 797 of file mesh_data.cc.
References BKE_mesh_runtime_clear_cache(), CD_MASK_MESH, CD_PROP_FLOAT3, CD_SET_DEFAULT, CustomData_add_layer_named(), CustomData_copy_data(), CustomData_free(), CustomData_has_layer_named(), CustomData_init_layout_from(), blender::bke::SpanAttributeWriter< T >::finish(), len, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), mesh, blender::bke::SpanAttributeWriter< T >::span, Mesh::vert_data, Mesh::verts_num, and CustomData_MeshMasks::vmask.
Referenced by ED_mesh_verts_add().
|
static |
Definition at line 553 of file mesh_data.cc.
References BLI_assert, BM_data_layer_free(), CustomData_free_layers(), CustomData_has_layer(), CustomData_layertype_is_singleton(), data, DEG_id_tag_update(), ED_mesh_context(), Mesh::id, ID_RECALC_GEOMETRY, mesh, mesh_customdata_get_type(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, Mesh::runtime, and WM_event_add_notifier().
Referenced by mesh_customdata_mask_clear_exec(), and mesh_customdata_skin_clear_exec().
|
static |
Definition at line 712 of file mesh_data.cc.
References BKE_mesh_has_custom_loop_normals(), bm, BM_data_layer_ensure_named(), CD_PROP_INT16_2D, DEG_id_tag_update(), ED_mesh_context(), Mesh::id, BMesh::ldata, mesh, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, Mesh::runtime, and WM_event_add_notifier().
Referenced by MESH_OT_customdata_custom_splitnormals_add().
|
static |
Definition at line 754 of file mesh_data.cc.
References BKE_lnor_spacearr_clear(), bm, BM_data_layer_free_named(), CD_PROP_INT16_2D, CustomData_has_layer_named(), DEG_id_tag_update(), ED_mesh_context(), Mesh::id, ID_RECALC_GEOMETRY, BMesh::ldata, BMesh::lnor_spacearr, mesh, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, Mesh::runtime, and WM_event_add_notifier().
Referenced by MESH_OT_customdata_custom_splitnormals_clear().
|
static |
Definition at line 51 of file mesh_data.cc.
References BLI_assert, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, Mesh::corner_data, Mesh::corners_num, data, BMesh::edata, Mesh::edge_data, Mesh::edges_num, Mesh::face_data, Mesh::faces_num, BMesh::ldata, mesh, BMesh::pdata, Mesh::runtime, BMesh::totedge, BMesh::totface, BMesh::totloop, BMesh::totvert, BMesh::vdata, Mesh::vert_data, and Mesh::verts_num.
Referenced by ED_mesh_color_add(), ED_mesh_uv_loop_reset(), mesh_customdata_clear_exec__internal(), mesh_customdata_mask_clear_poll(), mesh_customdata_skin_state(), mesh_uv_texture_remove_exec(), and uv_texture_remove_poll().
|
static |
Definition at line 604 of file mesh_data.cc.
References BKE_attribute_remove(), BM_LOOP, CD_GRID_PAINT_MASK, blender::ed::object::context_object(), AttributeOwner::from_id(), Mesh::id, mesh, mesh_customdata_clear_exec__internal(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and wmOperator::reports.
Referenced by MESH_OT_customdata_mask_clear().
|
static |
Definition at line 580 of file mesh_data.cc.
References BM_LOOP, BM_VERT, CD_GRID_PAINT_MASK, CD_PROP_FLOAT, blender::ed::object::context_object(), CustomData_has_layer(), CustomData_has_layer_named(), data, Object::data, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, mesh, mesh_customdata_get_type(), Object::mode, OB_MESH, OB_MODE_SCULPT, and Object::type.
Referenced by MESH_OT_customdata_mask_clear().
|
static |
Definition at line 658 of file mesh_data.cc.
References BKE_mesh_ensure_skin_customdata(), blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), Mesh::id, mesh, NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_customdata_skin_add().
|
static |
Definition at line 653 of file mesh_data.cc.
References mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_add().
|
static |
Definition at line 691 of file mesh_data.cc.
References BM_VERT, CD_MVERT_SKIN, and mesh_customdata_clear_exec__internal().
Referenced by MESH_OT_customdata_skin_clear().
|
static |
Definition at line 686 of file mesh_data.cc.
References mesh_customdata_skin_state().
Referenced by MESH_OT_customdata_skin_clear().
|
static |
Clear Skin
Definition at line 639 of file mesh_data.cc.
References BM_VERT, CD_MVERT_SKIN, blender::ed::object::context_object(), CustomData_has_layer(), data, Object::data, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, mesh, mesh_customdata_get_type(), OB_MESH, and Object::type.
Referenced by mesh_customdata_skin_add_poll(), and mesh_customdata_skin_clear_poll().
|
static |
Definition at line 295 of file mesh_data.cc.
References CD_PROP_BOOL, Mesh::corner_data, CustomData_get_layer_named(), mesh, and name.
Referenced by ED_mesh_uv_map_edge_select_layer_get(), ED_mesh_uv_map_pin_layer_get(), and ED_mesh_uv_map_vert_select_layer_get().
| void MESH_OT_customdata_custom_splitnormals_add | ( | wmOperatorType * | ot | ) |
Definition at line 739 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 782 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 618 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 671 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 696 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_uv_texture_add | ( | wmOperatorType * | ot | ) |
Definition at line 497 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 536 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().
|
static |
Definition at line 997 of file mesh_data.cc.
References CustomData_ensure_layers_are_mutable(), CustomData_free_elem(), Mesh::edge_data, Mesh::edges_num, len, and mesh.
Referenced by ED_mesh_edges_remove(), and ED_mesh_geometry_clear().
|
static |
Definition at line 1019 of file mesh_data.cc.
References CustomData_ensure_layers_are_mutable(), CustomData_free_elem(), Mesh::face_data, Mesh::faces_num, len, and mesh.
Referenced by ED_mesh_faces_remove(), and ED_mesh_geometry_clear().
|
static |
Definition at line 1008 of file mesh_data.cc.
References Mesh::corner_data, Mesh::corners_num, CustomData_ensure_layers_are_mutable(), CustomData_free_elem(), len, and mesh.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_loops_remove().
|
static |
Definition at line 986 of file mesh_data.cc.
References CustomData_ensure_layers_are_mutable(), CustomData_free_elem(), len, mesh, Mesh::vert_data, and Mesh::verts_num.
Referenced by ED_mesh_geometry_clear(), and ED_mesh_verts_remove().
|
static |
Definition at line 111 of file mesh_data.cc.
References cosf, len, M_PI, and sinf.
Referenced by mesh_uv_reset_bmface(), and mesh_uv_reset_mface().
|
static |
Definition at line 151 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().
|
static |
Definition at line 165 of file mesh_data.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::data(), mesh_uv_reset_array(), and blender::IndexRange::size().
Referenced by ED_mesh_uv_loop_reset_ex().
|
static |
Definition at line 479 of file mesh_data.cc.
References blender::ed::object::context_object(), CTX_data_scene(), Object::data, ED_mesh_uv_add(), ED_paint_proj_mesh_data_check(), mesh, 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 512 of file mesh_data.cc.
References BKE_attribute_remove(), BM_LOOP, CD_PROP_FLOAT2, blender::ed::object::context_object(), CTX_data_scene(), CustomData_get_active_layer_name(), Object::data, DEG_id_tag_update(), ED_paint_proj_mesh_data_check(), AttributeOwner::from_id(), Mesh::id, ID_RECALC_GEOMETRY, mesh, mesh_customdata_get_type(), Object::mode, name, NC_GEOM, NC_SCENE, ND_DATA, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, scene, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by MESH_OT_uv_texture_remove().
|
static |
Definition at line 462 of file mesh_data.cc.
References active, BM_LOOP, CD_PROP_FLOAT2, blender::ed::object::context_object(), CustomData_get_active_layer(), Object::data, layers_poll(), mesh, and mesh_customdata_get_type().
Referenced by MESH_OT_uv_texture_remove().