Skip to content

Commit

Permalink
Merge pull request #1617 from alicevision/fix/texturingMaya
Browse files Browse the repository at this point in the history
[mesh] Texturing fix: specify a name for the materials to avoid issues in Maya
  • Loading branch information
cbentejac authored Dec 7, 2023
2 parents 1cf4b12 + e04187f commit 3f8ccfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aliceVision/mesh/Texturing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ void Texturing::saveAs(const bfs::path& dir, const std::string& basename, EFileT
for (int atlasId = 0; atlasId < _atlases.size(); ++atlasId)
{
// Set material for this atlas
const aiString texName(Material::textureId(atlasId));
const aiString texName("material_" + Material::textureId(atlasId));

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

0 comments on commit 3f8ccfb

Please sign in to comment.