Skip to content

Commit

Permalink
Merge pull request #1542 from lvk88/1464-gltf-bug
Browse files Browse the repository at this point in the history
Use updateDataMask in gltf loader for vertcolor and wedgetexcoord
  • Loading branch information
alemuntoni authored Oct 25, 2024
2 parents 980cb95 + c7afe61 commit 61eb845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/meshlabplugins/io_gltf/gltf_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,15 @@ void loadMeshPrimitive(
res = loadAttribute(m, ivp, model, p, COLOR_0);
if (res) {
mask |= vcg::tri::io::Mask::IOM_VERTCOLOR;
m.updateDataMask(MeshModel::MM_VERTCOLOR);
}
progress.increment();
if (cb)
cb(progress.progress(), "Loading vertex texcoords");
res = loadAttribute(m, ivp, model, p, TEXCOORD_0, textureImg);
if (res) {
mask |= vcg::tri::io::Mask::IOM_WEDGTEXCOORD;
m.updateDataMask(MeshModel::MM_WEDGTEXCOORD);
}
progress.increment();

Expand Down

0 comments on commit 61eb845

Please sign in to comment.