Blender
V3.3
|
Functions | |
static void | node_declare (NodeDeclarationBuilder &b) |
static void | assign_material_to_faces (Mesh &mesh, const IndexMask selection, Material *material) |
static void | node_geo_exec (GeoNodeExecParams params) |
|
static |
Definition at line 30 of file node_geo_set_material.cc.
References BKE_id_material_eval_assign(), BKE_id_material_eval_ensure_default_slot(), CD_MPOLY, CustomData_duplicate_referenced_layer(), Mesh::id, Mesh::mat, MPoly::mat_nr, material, mesh, Mesh::mpoly, Mesh::pdata, blender::IndexMask::size(), Mesh::totcol, and Mesh::totpoly.
Referenced by node_geo_exec().
|
static |
Definition at line 18 of file node_geo_set_material.cc.
References usdtokens::b(), GEO_COMPONENT_TYPE_CURVE, GEO_COMPONENT_TYPE_MESH, GEO_COMPONENT_TYPE_POINT_CLOUD, GEO_COMPONENT_TYPE_VOLUME, and N_.
Referenced by register_node_type_geo_set_material().
|
static |
Definition at line 59 of file node_geo_set_material.cc.
References assign_material_to_faces(), ATTR_DOMAIN_FACE, BKE_id_material_eval_assign(), curves, MeshComponent::get_for_write(), Info, material, mesh, params, TIP_, and Mesh::totpoly.
Referenced by register_node_type_geo_set_material().