Skip to content

Commit 3f8ccfb

Browse files
authored
Merge pull request #1617 from alicevision/fix/texturingMaya
[mesh] Texturing fix: specify a name for the materials to avoid issues in Maya
2 parents 1cf4b12 + e04187f commit 3f8ccfb

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)