From 7f1d90c8430e01f151bd7cc0e12ca4ed7149e782 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 22 Sep 2016 12:55:34 +0300 Subject: [PATCH] Fix for the '23337: [CEA 1942] When we modify a mesh hypothesis, the display in the 3D view is not deleted immediatly' issue. --- src/SMESHGUI/SMESHGUI_Hypotheses.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx index 9a5e014ff..9bfb74ac6 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx @@ -29,6 +29,8 @@ #include "SMESHGUI_HypothesesUtils.h" #include "SMESHGUI_Utils.h" #include "SMESHGUI_SpinBox.h" +#include "SMESHGUI_VTKUtils.h" +#include "SMESH_Actor.h" // SALOME KERNEL includes #include @@ -42,6 +44,7 @@ #include #include #include +#include // Qt includes #include @@ -313,6 +316,10 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result ) aMesh = aSubMesh->GetFather(); _PTR(SObject) meshSO = SMESH::FindSObject( aMesh ); SMESH::ModifiedMesh( meshSO, false, aMesh->NbNodes()==0); + SMESH_Actor* actor = SMESH::FindActorByEntry( meshSO->GetID().c_str() ); + if( actor ) { + actor->Update(); + } } } SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 ); @@ -324,6 +331,9 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result ) myDlg->close(); //delete myDlg; since WA_DeleteOnClose==true myDlg = 0; + if (SVTK_ViewWindow* vf = SMESH::GetCurrentVtkView()) { + vf->Repaint(); + } emit finished( result ); } -- 2.30.2