From 30ca5693bd98c9ed2eff3f978d98e0139b27ce86 Mon Sep 17 00:00:00 2001
From: Florent Berthaut <florent.berthaut@univ-lille.fr>
Date: Thu, 11 Jan 2024 15:24:05 +0100
Subject: [PATCH] Fix crash when 1 point in Path

---
 src/modules/RevealedPathModule.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/RevealedPathModule.cpp b/src/modules/RevealedPathModule.cpp
index bcd769b..0af1d96 100644
--- a/src/modules/RevealedPathModule.cpp
+++ b/src/modules/RevealedPathModule.cpp
@@ -72,7 +72,7 @@ RevealedPathModule::RevealedPathModule(): RevealedModule() {
 
     m_attributesMap["inside_structure"]->setStrings(vector<string>(1,"along_z"));
 
-    m_attributesMap["thickness"]->setFloats(vector<float>(1,100));
+    m_attributesMap["thickness"]->setFloats(vector<float>(1, 20));
     m_attributesMap["edges"]->setInts(vector<int>(1,8));
     m_attributesMap["gradient_type"]->setStrings(vector<string>(1, "along_z"));
     vector<string> mods(1, "select_module");
@@ -197,7 +197,7 @@ void RevealedPathModule::refreshGeometry() {
 
     m_subShapeInvMats.clear();
 
-    if(m_points.size()>0) {
+    if(m_points.size()>1) {
         //create all vertices
         glm::vec3 dirZ(0, 0, 1);
         unsigned int preC=0;
-- 
GitLab