mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 06:00:32 +05:00
Regression revealed after restoring mesh data destruction at study closing
This commit is contained in:
parent
8c67d06369
commit
00bd895f44
@ -6771,8 +6771,8 @@ SMESH_MeshEditor::PGroupIDs SMESH_MeshEditor::Offset( TIDSortedElemSet & theElem
|
|||||||
meshDS->RemoveFreeElement( eIt->next(), 0 );
|
meshDS->RemoveFreeElement( eIt->next(), 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
offsetMesh->Modified();
|
// offsetMesh->Modified();
|
||||||
offsetMesh->CompactMesh(); // make IDs start from 1
|
// offsetMesh->CompactMesh(); // make IDs start from 1
|
||||||
|
|
||||||
// source elements for each generated one
|
// source elements for each generated one
|
||||||
SMESH_SequenceOfElemPtr srcElems, srcNodes;
|
SMESH_SequenceOfElemPtr srcElems, srcNodes;
|
||||||
|
@ -1683,6 +1683,8 @@ bool SMESH_subMesh::ComputeStateEngine(compute_event event)
|
|||||||
else
|
else
|
||||||
updateDependantsState( SUBMESH_COMPUTED );
|
updateDependantsState( SUBMESH_COMPUTED );
|
||||||
}
|
}
|
||||||
|
// let algo clear its data gathered while algo->Compute()
|
||||||
|
algo->CheckHypothesis((*_father), _subShape, hyp_status);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COMPUTE_CANCELED: // nothing to do
|
case COMPUTE_CANCELED: // nothing to do
|
||||||
|
@ -303,6 +303,8 @@ def AssureGeomPublished(mesh, geom, name=''):
|
|||||||
"""
|
"""
|
||||||
Private method. Add geom (sub-shape of the main shape) into the study if not yet there
|
Private method. Add geom (sub-shape of the main shape) into the study if not yet there
|
||||||
"""
|
"""
|
||||||
|
if not mesh.smeshpyD.IsEnablePublish():
|
||||||
|
return
|
||||||
if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
|
if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
|
||||||
return
|
return
|
||||||
if not geom.GetStudyEntry():
|
if not geom.GetStudyEntry():
|
||||||
|
Loading…
Reference in New Issue
Block a user