Commit 70d2526d authored by Sylvain Thery's avatar Sylvain Thery

fix big SCHNApps selection rendering

parent 3a859bf3
...@@ -190,6 +190,9 @@ void Drawer::newList(GLenum comp) ...@@ -190,6 +190,9 @@ void Drawer::newList(GLenum comp)
m_dataPos.clear(); m_dataPos.clear();
m_dataCol.clear(); m_dataCol.clear();
m_begins.clear(); m_begins.clear();
m_begins_point.clear();
m_begins_line.clear();
m_begins_face.clear();
} }
void Drawer::endList() void Drawer::endList()
......
...@@ -40,7 +40,7 @@ bool Surface_Selection_Plugin::enable() ...@@ -40,7 +40,7 @@ bool Surface_Selection_Plugin::enable()
m_selectedEdgesDrawer = new Utils::Drawer(1); m_selectedEdgesDrawer = new Utils::Drawer(1);
m_selectedFacesDrawer = new Utils::Drawer(); m_selectedFacesDrawer = new Utils::Drawer();
m_selectedFacesDrawer->setFaceShading(true); m_selectedFacesDrawer->setFaceShading(false);
m_selectingCellDrawer = new Utils::Drawer(1); m_selectingCellDrawer = new Utils::Drawer(1);
...@@ -609,7 +609,6 @@ void Surface_Selection_Plugin::updateSelectedCellsRendering() ...@@ -609,7 +609,6 @@ void Surface_Selection_Plugin::updateSelectedCellsRendering()
} }
m_selectedFacesDrawer->end(); m_selectedFacesDrawer->end();
m_selectedFacesDrawer->endList(); m_selectedFacesDrawer->endList();
m_selectedFacesDrawer->setFaceShading(true);
m_selectedFaces_dirty = false; m_selectedFaces_dirty = false;
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment