mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 19:00:35 +05:00
In OnEditDelete(),
+ // Call mesh->Clear() to prevent loading mesh from file caused by hypotheses removal + ...
This commit is contained in:
parent
6da7fe1a54
commit
37b13e00d4
@ -1800,6 +1800,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Call mesh->Clear() to prevent loading mesh from file caused by hypotheses removal
|
||||
for( It.Initialize( selected ); It.More(); It.Next()) // loop on selected IO's
|
||||
{
|
||||
Handle(SALOME_InteractiveObject) IObject = It.Value();
|
||||
SMESH::SMESH_Mesh_var mesh = SMESH::IObjectToInterface< SMESH::SMESH_Mesh >( IObject );
|
||||
if ( !mesh->_is_nil() )
|
||||
mesh->Clear();
|
||||
}
|
||||
|
||||
// Treat SO's in the list starting from the back
|
||||
aStudyBuilder->NewCommand(); // There is a transaction
|
||||
for ( ritSO = listSO.rbegin(); ritSO != listSO.rend(); ++ritSO )
|
||||
|
Loading…
Reference in New Issue
Block a user