diff options
author | Michael Kowalski <makowalski@nvidia.com> | 2022-10-27 22:25:47 +0300 |
---|---|---|
committer | Michael Kowalski <makowalski@nvidia.com> | 2022-10-27 22:25:47 +0300 |
commit | 7e0fb88a68c22135200ce9770c03023e050ea974 (patch) | |
tree | 0b59ae5a01bea2fcfea0aee3dc69765bdee9329a /source/blender/io | |
parent | 4fa478c724903ee3d4a4cb6aaf05775a7c46ad01 (diff) |
USD export: export textures for Cycles materials.
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/usd/intern/usd_writer_abstract.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/io/usd/intern/usd_writer_abstract.cc b/source/blender/io/usd/intern/usd_writer_abstract.cc index 65d42d6bba2..70c3268d01d 100644 --- a/source/blender/io/usd/intern/usd_writer_abstract.cc +++ b/source/blender/io/usd/intern/usd_writer_abstract.cc @@ -232,6 +232,9 @@ pxr::UsdShadeMaterial USDAbstractWriter::ensure_usd_material(const HierarchyCont material, usd_material, this->usd_export_context_.export_params); + if (this->usd_export_context_.export_params.export_textures) { + export_textures(material, this->usd_export_context_.stage); + } } if (material->use_nodes && this->usd_export_context_.export_params.generate_mdl) { create_mdl_material(this->usd_export_context_, material, usd_material); |