From: kgv Date: Wed, 10 Nov 2021 09:38:56 +0000 (+0300) Subject: 0032654: Data Exchange - fix misprint in RWGltf_TriangulationReader::readDracoBuffer() X-Git-Tag: V7_7_0_beta~262 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2b40ee81d1c5161cbfa79eb06421bdaa8499142c;p=occt.git 0032654: Data Exchange - fix misprint in RWGltf_TriangulationReader::readDracoBuffer() Added missing break. Fixes reading of glTF files with Normal attributes preceding Position (and eliminates redundant / erroneous copy when Position attributes precede Normal). --- diff --git a/src/RWGltf/RWGltf_TriangulationReader.cxx b/src/RWGltf/RWGltf_TriangulationReader.cxx index 7d57656680..44dba18774 100644 --- a/src/RWGltf/RWGltf_TriangulationReader.cxx +++ b/src/RWGltf/RWGltf_TriangulationReader.cxx @@ -297,6 +297,7 @@ bool RWGltf_TriangulationReader::readDracoBuffer (const Handle(RWGltf_GltfLatePr myCoordSysConverter.TransformPosition (anXYZ.ChangeCoord()); setNodePosition (theDestMesh, THE_LOWER_NODE_INDEX + aVertIter, anXYZ); } + break; } case RWGltf_GltfArrayType_Normal: {