Skip to content
Snippets Groups Projects
Commit 30ca5693 authored by Florent Berthaut's avatar Florent Berthaut
Browse files

Fix crash when 1 point in Path

parent 5fc3076f
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment