Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b615525
)
Implementation of the automatic breaking the link if the shape is modified or deleted
author
mpv
<mpv@opencascade.com>
Thu, 19 Dec 2019 15:24:56 +0000
(18:24 +0300)
committer
mpv
<mpv@opencascade.com>
Thu, 19 Dec 2019 15:24:56 +0000
(18:24 +0300)
src/SMESH_I/SMESH_Mesh_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Mesh_i.cxx
b/src/SMESH_I/SMESH_Mesh_i.cxx
index 244f75147b0faba4f26eb9959501c775fc03bdee..c2cf46593175fbc9fa88719ef9ee54e5fcc20b5c 100644
(file)
--- 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();