Commit bd4f72f5 authored by Sylvain Thery's avatar Sylvain Thery

test NIL in overdraw dart of Topo

parent 2cfa8ae9
...@@ -53,6 +53,9 @@ namespace GL2 ...@@ -53,6 +53,9 @@ namespace GL2
template<typename MAP> template<typename MAP>
void TopoRender::overdrawDart(MAP& map, Dart d, float width, float r, float g, float b) void TopoRender::overdrawDart(MAP& map, Dart d, float width, float r, float g, float b)
{ {
if (d == NIL)
return;
DartAttribute<unsigned int, MAP> attIndex = map.template getAttribute<unsigned int, DART, MAP>(m_nameIndex); DartAttribute<unsigned int, MAP> attIndex = map.template getAttribute<unsigned int, DART, MAP>(m_nameIndex);
if (!attIndex.isValid()) if (!attIndex.isValid())
attIndex = map.template addAttribute<unsigned int, DART, MAP>(m_nameIndex); attIndex = map.template addAttribute<unsigned int, DART, MAP>(m_nameIndex);
......
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