From 64de24c03947bb185605b7209ed545fe666a87bc Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 12 Apr 2023 13:34:06 +0200 Subject: [PATCH] Mesh: [skip ci] restore comment --- src/Mod/Mesh/Gui/SoFCIndexedFaceSet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.cpp b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.cpp index 18d0f78386..8a437a44dd 100644 --- a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.cpp +++ b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.cpp @@ -592,6 +592,9 @@ void SoFCIndexedFaceSet::drawFaces(SoGLRenderAction *action) drawCoords(static_cast(coords), cindices, numindices, normals, nindices, &mb, mindices, binding, &tb, tindices); + // getVertexData() internally calls readLockNormalCache() that read locks + // the normal cache. When the cache is not needed any more we must call + // readUnlockNormalCache() if (normalCacheUsed) this->readUnlockNormalCache();