]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
load mesh from study before Compute and PreCompute
authoreap <eap@opencascade.com>
Tue, 28 Feb 2012 14:06:58 +0000 (14:06 +0000)
committereap <eap@opencascade.com>
Tue, 28 Feb 2012 14:06:58 +0000 (14:06 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index 73401a3252caa180f1918a4b346dc1b1daa47b89..ad78cbb5f0e9dc206af4c588a8feec34a80fb625 100644 (file)
@@ -1615,6 +1615,7 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
   try {
     // get mesh servant
     SMESH_Mesh_i* meshServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( theMesh ).in() );
+    meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
       // NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"
@@ -1700,6 +1701,7 @@ SMESH::MeshPreviewStruct* SMESH_Gen_i::Precompute( SMESH::SMESH_Mesh_ptr theMesh
   try {
     // get mesh servant
     SMESH_Mesh_i* meshServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( theMesh ).in() );
+    meshServant->Load();
     ASSERT( meshServant );
     if ( meshServant ) {
       // NPAL16168: "geometrical group edition from a submesh don't modifiy mesh computation"