USD export: Fix incorrect texture alpha mapping. #107022

Merged
Michael Kowalski merged 8 commits from makowalski/blender:usd_preview_surface_alpha_bug into main 2023-05-03 16:13:00 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit e5d609e45f - Show all commits

View File

@ -350,7 +350,8 @@ static void create_uvmap_shader(const USDExporterContext &usd_export_context,
found_uv_node = true;
if (NodeShaderUVMap *shader_uv_map = static_cast<NodeShaderUVMap *>(
uv_node_link->fromnode->storage)) {
uv_node_link->fromnode->storage))
{
/* We need to make valid here because actual uv primvar has been. */
std::string uv_set = pxr::TfMakeValidIdentifier(shader_uv_map->uv_map);