+ fixes# 0001502: crash when using 'move' tool in part workbench
This commit is contained in:
parent
95bda08764
commit
78b24c9ba7
|
@ -150,10 +150,11 @@ void SoBrepEdgeSet::renderHighlight(SoGLRenderAction *action)
|
|||
SoMaterialBundle mb(action);
|
||||
mb.sendFirst(); // make sure we have the correct material
|
||||
|
||||
const int32_t* id = &(this->hl[0]);
|
||||
int num = (int)this->hl.size();
|
||||
|
||||
renderShape(static_cast<const SoGLCoordinateElement*>(coords), id, num);
|
||||
if (num > 0) {
|
||||
const int32_t* id = &(this->hl[0]);
|
||||
renderShape(static_cast<const SoGLCoordinateElement*>(coords), id, num);
|
||||
}
|
||||
state->pop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user