Salome HOME
Fix for '54677: TC-9.5.0: SMESH: ball visualization failed'
authorrnv <rnv@opencascade.com>
Wed, 27 May 2020 20:56:31 +0000 (23:56 +0300)
committerrnv <rnv@opencascade.com>
Wed, 27 May 2020 20:56:31 +0000 (23:56 +0300)
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx

index e4654aa..165b148 100644 (file)
@@ -217,6 +217,7 @@ namespace SMESH
     void SetBallPosition(SMESH_Actor* theActor,TVTKIds& theIds, double theDiameter)
     {
       vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
+      myBallPolyData->SetPoints(NULL);
       myBallPolyData->Reset();
       myBallPolyData->DeleteCells();
       myBallPolyData->SetPoints(aGrid->GetPoints());