Salome HOME
Implementation of the automatic breaking the link if the shape is modified or deleted
authormpv <mpv@opencascade.com>
Thu, 19 Dec 2019 15:24:56 +0000 (18:24 +0300)
committermpv <mpv@opencascade.com>
Thu, 19 Dec 2019 15:24:56 +0000 (18:24 +0300)
src/SMESH_I/SMESH_Mesh_i.cxx

index 244f75147b0faba4f26eb9959501c775fc03bdee..c2cf46593175fbc9fa88719ef9ee54e5fcc20b5c 100644 (file)
@@ -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();