Blender
V3.3
|
Functions | |
static void | build_mat_map (const Main *bmain, std::map< std::string, Material * > *r_mat_map) |
static pxr::UsdShadeMaterial | compute_bound_material (const pxr::UsdPrim &prim) |
static Material * | find_existing_material (const pxr::SdfPath &usd_mat_path, const USDImportParams ¶ms, const std::map< std::string, Material * > &mat_map, const std::map< std::string, std::string > &usd_path_to_mat_name) |
static void | assign_materials (Main *bmain, Object *ob, const std::map< pxr::SdfPath, int > &mat_index_map, const USDImportParams ¶ms, pxr::UsdStageRefPtr stage, std::map< std::string, Material * > &mat_name_to_mat, std::map< std::string, std::string > &usd_path_to_mat_name) |
|
static |
Definition at line 107 of file usd_reader_mesh.cc.
References Object::actcol, blender::io::usd::USDMaterialReader::add_material(), BKE_object_material_assign_single_obdata(), find_existing_material(), Material::id, MAXMAT, ID::name, params, stage, Object::totcol, and USD_MTL_NAME_COLLISION_MAKE_UNIQUE.
|
static |
Definition at line 51 of file usd_reader_mesh.cc.
References ListBase::first, Material::id, material, Main::materials, ID::name, and ID::next.
|
static |
Definition at line 65 of file usd_reader_mesh.cc.
|
static |
Definition at line 73 of file usd_reader_mesh.cc.
References BLI_assert_unreachable, params, and USD_MTL_NAME_COLLISION_MAKE_UNIQUE.
Referenced by assign_materials().