diff --git a/src/meshlabplugins/io_gltf/gltf_loader.cpp b/src/meshlabplugins/io_gltf/gltf_loader.cpp index d050d1e75..36e579135 100644 --- a/src/meshlabplugins/io_gltf/gltf_loader.cpp +++ b/src/meshlabplugins/io_gltf/gltf_loader.cpp @@ -430,6 +430,7 @@ 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) @@ -437,6 +438,7 @@ void loadMeshPrimitive( 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();