mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 08:10:33 +05:00
Fix to avoid dependence of mesh on itself (it leaded to cycle in 'SetRemovedFromStudy').
This commit is contained in:
parent
85cd604381
commit
436838c202
@ -2011,7 +2011,7 @@ void _pyMesh::ClearCommands()
|
|||||||
|
|
||||||
void _pyMesh::addFatherMesh( const _pyID& meshID )
|
void _pyMesh::addFatherMesh( const _pyID& meshID )
|
||||||
{
|
{
|
||||||
if ( !meshID.IsEmpty() )
|
if ( !meshID.IsEmpty() && meshID != GetID() )
|
||||||
addFatherMesh( Handle(_pyMesh)::DownCast( theGen->FindObject( meshID )));
|
addFatherMesh( Handle(_pyMesh)::DownCast( theGen->FindObject( meshID )));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2023,7 +2023,7 @@ void _pyMesh::addFatherMesh( const _pyID& meshID )
|
|||||||
|
|
||||||
void _pyMesh::addFatherMesh( const Handle(_pyMesh)& mesh )
|
void _pyMesh::addFatherMesh( const Handle(_pyMesh)& mesh )
|
||||||
{
|
{
|
||||||
if ( !mesh.IsNull() )
|
if ( !mesh.IsNull() && mesh->GetID() != GetID() )
|
||||||
{
|
{
|
||||||
//myFatherMeshes.push_back( mesh );
|
//myFatherMeshes.push_back( mesh );
|
||||||
mesh->myChildMeshes.push_back( this );
|
mesh->myChildMeshes.push_back( this );
|
||||||
|
Loading…
Reference in New Issue
Block a user