Skip to content

Commit e04187f

Browse files
committedDec 6, 2023
[mesh] Texturing: specify a name for the materials to avoid issues in Maya
1 parent 89d0c26 commit e04187f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/aliceVision/mesh/Texturing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void Texturing::saveAs(const bfs::path& dir, const std::string& basename, EFileT
10861086
for (int atlasId = 0; atlasId < _atlases.size(); ++atlasId)
10871087
{
10881088
// Set material for this atlas
1089-
const aiString texName(Material::textureId(atlasId));
1089+
const aiString texName("material_" + Material::textureId(atlasId));
10901090

10911091
scene.mMaterials[atlasId] = new aiMaterial;
10921092
scene.mMaterials[atlasId]->AddProperty(&valcolor, 1, AI_MATKEY_COLOR_AMBIENT);

0 commit comments

Comments
 (0)