From 61d4924ad8c4a35efd88b6d9d9375f2995abd15d Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 9 Jan 2025 14:35:29 +0100 Subject: [PATCH] [Engine] Fix drawLines from ValuesFromPositions (#5206) --- .../src/sofa/component/engine/select/ValuesFromPositions.inl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sofa/Component/Engine/Select/src/sofa/component/engine/select/ValuesFromPositions.inl b/Sofa/Component/Engine/Select/src/sofa/component/engine/select/ValuesFromPositions.inl index be9c929108a..d88b40ed666 100644 --- a/Sofa/Component/Engine/Select/src/sofa/component/engine/select/ValuesFromPositions.inl +++ b/Sofa/Component/Engine/Select/src/sofa/component/engine/select/ValuesFromPositions.inl @@ -430,8 +430,7 @@ void ValuesFromPositions::draw(const core::visual::VisualParams* vpar color[j] = (float)fabs (tetrahedronVectors[i][j]); colors.push_back(color); - colors.push_back(color); - + vertices.push_back(point1); vertices.push_back(point2); }