clear nodes of fem view provider when clearing mesh
This commit is contained in:
parent
cb1ef11666
commit
bbadcf614b
|
@ -727,7 +727,12 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop,
|
|||
int numNodes = data->NbNodes();
|
||||
int numEdges = data->NbEdges();
|
||||
|
||||
if(numFaces+numNodes+numEdges == 0) return;
|
||||
if (numFaces+numNodes+numEdges == 0) {
|
||||
coords->point.setNum(0);
|
||||
faces->coordIndex.setNum(0);
|
||||
lines->coordIndex.setNum(0);
|
||||
return;
|
||||
}
|
||||
Base::TimeInfo Start;
|
||||
Base::Console().Log("Start: ViewProviderFEMMeshBuilder::createMesh() =================================\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user