Skip to content

Commit

Permalink
#1464 : Use updateDataMask in gltf loader for vertcolor and wedgetext…
Browse files Browse the repository at this point in the history
…coord
  • Loading branch information
lvk88 committed Oct 24, 2024
1 parent 980cb95 commit c7afe61
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 c7afe61

Please sign in to comment.