mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 06:20:34 +05:00
Bug: preview works correctly only once, other times preview shows the same
as at the 1st time. Ensure clearing of tmp mesh
This commit is contained in:
parent
234f898030
commit
ab9af27445
@ -177,6 +177,10 @@ namespace MeshEditor_I {
|
|||||||
return _myMeshDS->AddNodeWithID(anElemNode->X(), anElemNode->Y(), anElemNode->Z(),
|
return _myMeshDS->AddNodeWithID(anElemNode->X(), anElemNode->Y(), anElemNode->Z(),
|
||||||
anElemNode->GetID());
|
anElemNode->GetID());
|
||||||
}
|
}
|
||||||
|
void RemoveAll()
|
||||||
|
{
|
||||||
|
GetMeshDS()->ClearMesh();
|
||||||
|
}
|
||||||
};// struct TPreviewMesh
|
};// struct TPreviewMesh
|
||||||
|
|
||||||
static SMESH_NodeSearcher * theNodeSearcher = 0;
|
static SMESH_NodeSearcher * theNodeSearcher = 0;
|
||||||
@ -468,7 +472,7 @@ SMESH_MeshEditor_i::~SMESH_MeshEditor_i()
|
|||||||
void SMESH_MeshEditor_i::initData(bool deleteSearchers)
|
void SMESH_MeshEditor_i::initData(bool deleteSearchers)
|
||||||
{
|
{
|
||||||
if ( myIsPreviewMode ) {
|
if ( myIsPreviewMode ) {
|
||||||
if ( myPreviewMesh ) myPreviewMesh->Clear();
|
if ( myPreviewMesh ) myPreviewMesh->RemoveAll();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ( deleteSearchers )
|
if ( deleteSearchers )
|
||||||
|
Loading…
Reference in New Issue
Block a user