31 if (
Mesh *
mesh = geometry_set.get_mesh_for_write()) {
33 if (
mesh->
mat[i] == old_material) {
40 params.set_output(
"Geometry", std::move(geometry_set));
@ GEO_COMPONENT_TYPE_MESH
General operations, lookup, etc. for materials.
#define GEO_NODE_REPLACE_MATERIAL
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_material_replace()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
void modify_geometry_sets(ForeachSubGeometryCallback callback)
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare