diff --git a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h index 3514ce48e50..3e1d321cf3e 100644 --- a/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h +++ b/Sofa/framework/Core/src/sofa/core/visual/DrawMesh.h @@ -298,7 +298,7 @@ struct SOFA_CORE_API DrawElementMesh { const auto& element = elements[i]; const auto& facetsInElement = topology->getQuadsInHexahedron(i); - assert(facetsInElement.size() == NumberTrianglesInTetrahedron); + assert(facetsInElement.size() == NumberQuadsInHexahedron); const auto center = this->elementCenter(position, element);