From 501b1a0f68de9605f0454c80d5387459c24a67c6 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 27 May 2020 23:56:31 +0300 Subject: [PATCH] Fix for '54677: TC-9.5.0: SMESH: ball visualization failed' --- src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx index e4654aa62..165b1487c 100644 --- a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx @@ -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()); -- 2.39.2