]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 e4654aa620cc1ab8b8104f30185e55b89ba0805f..165b1487c4426442cdb0f8d1cfac28fb8d4a57ea 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());