From c7afe61b8d2e693b052a0997a52755f8788df12d Mon Sep 17 00:00:00 2001 From: lvk88 <15655519+lvk88@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:47:31 +0200 Subject: [PATCH] #1464 : Use updateDataMask in gltf loader for vertcolor and wedgetextcoord --- src/meshlabplugins/io_gltf/gltf_loader.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();