Skip to content

Commit

Permalink
clear nodes of fem view provider when clearing mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 23, 2016
1 parent cb1ef11 commit bbadcf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
Expand Up @@ -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");

Expand Down

0 comments on commit bbadcf6

Please sign in to comment.