Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/usd/intern/usd_writer_mesh.cc')
-rw-r--r--source/blender/usd/intern/usd_writer_mesh.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/usd/intern/usd_writer_mesh.cc b/source/blender/usd/intern/usd_writer_mesh.cc
index 28e13013cfd..dc603f25b21 100644
--- a/source/blender/usd/intern/usd_writer_mesh.cc
+++ b/source/blender/usd/intern/usd_writer_mesh.cc
@@ -339,7 +339,7 @@ void USDGenericMeshWriter::assign_materials(const HierarchyContext &context,
* https://github.com/PixarAnimationStudios/USD/issues/542 for more info. */
bool mesh_material_bound = false;
for (short mat_num = 0; mat_num < context.object->totcol; mat_num++) {
- Material *material = give_current_material(context.object, mat_num + 1);
+ Material *material = BKE_object_material_get(context.object, mat_num + 1);
if (material == nullptr) {
continue;
}
@@ -373,7 +373,7 @@ void USDGenericMeshWriter::assign_materials(const HierarchyContext &context,
short material_number = face_group.first;
const pxr::VtIntArray &face_indices = face_group.second;
- Material *material = give_current_material(context.object, material_number + 1);
+ Material *material = BKE_object_material_get(context.object, material_number + 1);
if (material == nullptr) {
continue;
}