Salome HOME
Debug
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i_1.cxx
index c3123b3f5a79293b2f7b5fd0c563799bbdb73615..2441aa14c69c31f570f5d1778631f8d3435121a0 100644 (file)
@@ -560,6 +560,10 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::PublishMesh (SALOMEDS::Study_ptr   theStudy,
     }
   }
 
+  // Update string attribute (to display used variables)
+  if( SMESH_Mesh_i* aServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( theMesh ).in() ) )
+    aServant->UpdateStringAttribute();
+
   if(MYDEBUG) MESSAGE("PublishMesh_END");
   return aMeshSO._retn();
 }
@@ -749,6 +753,7 @@ SALOMEDS::SObject_ptr
     SetName( aHypSO, theName, aHypName );
   }
 
+  // Update string attribute (to display used variables)
   if( SMESH_Hypothesis_i* aServant = dynamic_cast<SMESH_Hypothesis_i*>( GetServant( theHyp ).in() ) )
     aServant->UpdateStringAttribute();