MeshGui::SoFCIndexedFaceSet: fix missing normal cache unlock

This commit is contained in:
Zheng, Lei
2018-08-28 18:21:33 +08:00
committed by wmayer
parent 7a018b265f
commit 864ca1e470

View File

@@ -576,6 +576,9 @@ void SoFCIndexedFaceSet::drawFaces(SoGLRenderAction *action)
drawCoords(static_cast<const SoGLCoordinateElement*>(coords), cindices, numindices,
normals, nindices, &mb, mindices, binding, &tb, tindices);
if(normalCacheUsed)
this->readUnlockNormalCache();
// Disable caching for this node
SoGLCacheContextElement::shouldAutoCache(state, SoGLCacheContextElement::DONT_AUTO_CACHE);
#endif
@@ -847,6 +850,9 @@ void SoFCIndexedFaceSet::generateGLArrays(SoGLRenderAction * action)
}
render.generateGLArrays(action, matbind, face_vertices, face_indices);
if(normalCacheUsed)
this->readUnlockNormalCache();
}
void SoFCIndexedFaceSet::doAction(SoAction * action)