|
Blender V4.5
|
Functions | |
| static void | bmesh_vert_edge_face_layer_selected_values_set (BMesh &bm, const BMIterType iter_type, const GPointer value, const int offset) |
| static void | bmesh_loop_layer_selected_values_set (BMEditMesh &em, const GPointer value, const int offset) |
| static wmOperatorStatus | mesh_set_attribute_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | mesh_set_attribute_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | mesh_set_attribute_ui (bContext *C, wmOperator *op) |
|
static |
For face select mode, set face corner values of any selected face. For edge and vertex select mode, set face corner values of loops connected to selected vertices.
Definition at line 96 of file editmesh_attribute.cc.
References bm, BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_LOOPS_OF_FACE, BM_LOOPS_OF_VERT, BM_VERTS_OF_MESH, blender::CPPType::copy_assign(), BMHeader::data, blender::GPointer::get(), BMLoop::head, POINTER_OFFSET, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, and blender::GPointer::type().
Referenced by mesh_set_attribute_exec().
|
static |
Definition at line 77 of file editmesh_attribute.cc.
References bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, blender::CPPType::copy_assign(), BMHeader::data, blender::GPointer::get(), BMElem::head, POINTER_OFFSET, and blender::GPointer::type().
Referenced by mesh_set_attribute_exec().
|
static |
Definition at line 132 of file editmesh_attribute.cc.
References ATTR_DOMAIN_MASK_ALL, BKE_attribute_domain(), BKE_attribute_search_for_write(), BKE_attributes_active_name_get(), BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_assert_unreachable, BLI_SCOPED_DEFER, bm, BMEditMesh::bm, BM_EDGES_OF_MESH, BM_FACES_OF_MESH, BM_VERTS_OF_MESH, bmesh_loop_layer_selected_values_set(), bmesh_vert_edge_face_layer_selected_values_set(), BUFFER_FOR_CPP_TYPE_VALUE, C, CD_MASK_PROP_ALL, blender::bke::DataTypeConversions::convert_to_uninitialized(), blender::bke::Corner, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), blender::bke::custom_data_type_to_cpp_type(), blender::CPPType::destruct(), ED_mesh_context(), EDBM_update(), blender::bke::Edge, blender::bke::Face, AttributeOwner::from_id(), blender::CPPType::get(), blender::bke::get_implicit_type_conversions(), Mesh::id, blender::bke::DataTypeConversions::is_convertible(), CustomDataLayer::offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::Point, wmOperator::ptr, blender::ed::geometry::rna_property_for_attribute_type_retrieve_value(), CustomDataLayer::type, and update().
Referenced by MESH_OT_attribute_set().
|
static |
Definition at line 209 of file editmesh_attribute.cc.
References ATTR_DOMAIN_MASK_ALL, BKE_attribute_domain(), BKE_attribute_search_for_write(), BKE_attributes_active_name_get(), bm, BM_mesh_active_elem_get(), C, CD_MASK_PROP_ALL, blender::bke::custom_data_type_to_cpp_type(), BMHeader::data, blender::ed::mesh::domain_to_htype(), ED_mesh_context(), AttributeOwner::from_id(), BMElem::head, BMHeader::htype, CustomDataLayer::offset, POINTER_OFFSET, wmOperator::ptr, blender::ed::geometry::rna_property_for_attribute_type_set_value(), blender::ed::geometry::rna_property_for_type(), RNA_property_is_set(), CustomDataLayer::type, and WM_operator_props_popup().
Referenced by MESH_OT_attribute_set().
|
static |
Definition at line 244 of file editmesh_attribute.cc.
References ATTR_DOMAIN_MASK_ALL, BKE_attribute_search_for_write(), BKE_attributes_active_name_get(), C, CD_MASK_PROP_ALL, uiLayout::column(), ED_mesh_context(), AttributeOwner::from_id(), wmOperator::layout, uiLayout::prop(), wmOperator::ptr, blender::ed::geometry::rna_property_name_for_type(), CustomDataLayer::type, UI_ITEM_NONE, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by MESH_OT_attribute_set().