mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 18:50:33 +05:00
Fix for the '23337: [CEA 1942] When we modify a mesh hypothesis, the display in the 3D view is not deleted immediatly' issue.
This commit is contained in:
parent
e0a628e580
commit
7f1d90c843
@ -29,6 +29,8 @@
|
|||||||
#include "SMESHGUI_HypothesesUtils.h"
|
#include "SMESHGUI_HypothesesUtils.h"
|
||||||
#include "SMESHGUI_Utils.h"
|
#include "SMESHGUI_Utils.h"
|
||||||
#include "SMESHGUI_SpinBox.h"
|
#include "SMESHGUI_SpinBox.h"
|
||||||
|
#include "SMESHGUI_VTKUtils.h"
|
||||||
|
#include "SMESH_Actor.h"
|
||||||
|
|
||||||
// SALOME KERNEL includes
|
// SALOME KERNEL includes
|
||||||
#include <SALOMEDSClient_Study.hxx>
|
#include <SALOMEDSClient_Study.hxx>
|
||||||
@ -42,6 +44,7 @@
|
|||||||
#include <SUIT_Session.h>
|
#include <SUIT_Session.h>
|
||||||
#include <SalomeApp_IntSpinBox.h>
|
#include <SalomeApp_IntSpinBox.h>
|
||||||
#include <SalomeApp_Tools.h>
|
#include <SalomeApp_Tools.h>
|
||||||
|
#include <SVTK_ViewWindow.h>
|
||||||
|
|
||||||
// Qt includes
|
// Qt includes
|
||||||
#include <QFrame>
|
#include <QFrame>
|
||||||
@ -313,6 +316,10 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
|
|||||||
aMesh = aSubMesh->GetFather();
|
aMesh = aSubMesh->GetFather();
|
||||||
_PTR(SObject) meshSO = SMESH::FindSObject( aMesh );
|
_PTR(SObject) meshSO = SMESH::FindSObject( aMesh );
|
||||||
SMESH::ModifiedMesh( meshSO, false, aMesh->NbNodes()==0);
|
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 );
|
SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 );
|
||||||
@ -324,6 +331,9 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
|
|||||||
myDlg->close();
|
myDlg->close();
|
||||||
//delete myDlg; since WA_DeleteOnClose==true
|
//delete myDlg; since WA_DeleteOnClose==true
|
||||||
myDlg = 0;
|
myDlg = 0;
|
||||||
|
if (SVTK_ViewWindow* vf = SMESH::GetCurrentVtkView()) {
|
||||||
|
vf->Repaint();
|
||||||
|
}
|
||||||
emit finished( result );
|
emit finished( result );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user