From: mpv Date: Thu, 19 Dec 2019 15:24:56 +0000 (+0300) Subject: Implementation of the automatic breaking the link if the shape is modified or deleted X-Git-Tag: V9_5_0a1~5^2~29 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=c56d066c64504e0bf05d4d2e0596de5c60bc532b Implementation of the automatic breaking the link if the shape is modified or deleted --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 244f75147..c2cf46593 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -2241,6 +2241,13 @@ void SMESH_Mesh_i::CheckGeomModif() if ( newShape.IsNull() ) 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(); SMESHDS_Mesh * meshDS = _impl->GetMeshDS();