Implementation of the automatic breaking the link if the shape is modified or deleted

This commit is contained in:
mpv 2019-12-19 18:24:56 +03:00
parent b6155253f8
commit c56d066c64

View File

@ -2241,6 +2241,13 @@ void SMESH_Mesh_i::CheckGeomModif()
if ( newShape.IsNull() ) if ( newShape.IsNull() )
return; return;
// for the SHAPER-STUDY: the geometry may be updated, so, add a warning icon
if (_mainShapeTick != mainGO->GetTick()) {
SALOMEDS::SObject_wrap meshSO = _gen_i->ObjectToSObject( me );
if ( !meshSO->_is_nil())
_gen_i->SetPixMap(meshSO, "ICON_SMESH_TREE_MESH_WARN");
}
_mainShapeTick = mainGO->GetTick(); _mainShapeTick = mainGO->GetTick();
SMESHDS_Mesh * meshDS = _impl->GetMeshDS(); SMESHDS_Mesh * meshDS = _impl->GetMeshDS();