Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug: preview works correctly only once, other times preview shows the same
[modules/smesh.git]
/
src
/
SMESH_I
/
SMESH_MeshEditor_i.cxx
diff --git
a/src/SMESH_I/SMESH_MeshEditor_i.cxx
b/src/SMESH_I/SMESH_MeshEditor_i.cxx
index 565312c64f600a14fcf433f5f9247ee51cf0446b..3edcb167d592e33c15d3355333301f6895f5b9d9 100644
(file)
--- a/
src/SMESH_I/SMESH_MeshEditor_i.cxx
+++ b/
src/SMESH_I/SMESH_MeshEditor_i.cxx
@@
-177,6
+177,10
@@
namespace MeshEditor_I {
return _myMeshDS->AddNodeWithID(anElemNode->X(), anElemNode->Y(), anElemNode->Z(),
anElemNode->GetID());
}
return _myMeshDS->AddNodeWithID(anElemNode->X(), anElemNode->Y(), anElemNode->Z(),
anElemNode->GetID());
}
+ void RemoveAll()
+ {
+ GetMeshDS()->ClearMesh();
+ }
};// struct TPreviewMesh
static SMESH_NodeSearcher * theNodeSearcher = 0;
};// struct TPreviewMesh
static SMESH_NodeSearcher * theNodeSearcher = 0;
@@
-468,7
+472,7
@@
SMESH_MeshEditor_i::~SMESH_MeshEditor_i()
void SMESH_MeshEditor_i::initData(bool deleteSearchers)
{
if ( myIsPreviewMode ) {
void SMESH_MeshEditor_i::initData(bool deleteSearchers)
{
if ( myIsPreviewMode ) {
- if ( myPreviewMesh ) myPreviewMesh->
Clear
();
+ if ( myPreviewMesh ) myPreviewMesh->
RemoveAll
();
}
else {
if ( deleteSearchers )
}
else {
if ( deleteSearchers )