Salome HOME
Deal with old MG suite
[plugins/hexoticplugin.git] / src / HexoticPlugin / MG_Hexotic_API.cxx
index 5f88f1ce28c2ae3207bc6cbf24480c8051c3d1d9..36f7a7d5973a28dfd7f5dff9a21ae704e96e3487 100644 (file)
@@ -844,8 +844,9 @@ bool MG_Hexotic_API::Compute( const std::string& cmdLine, std::string& errStr )
       errStr = "Problem with library SalomeMeshGemsKeyGenerator: " + errorTxt;
       return false;
     }
-
-    const_cast< std::string& >( cmdLine ) += " --key " + key;
+    
+    if ( key != "0")
+      const_cast< std::string& >( cmdLine ) += " --key " + key;
   }
 
   int err = system( cmdLine.c_str() ); // run
@@ -1268,9 +1269,6 @@ void MG_Hexotic_API::GmfSetLin(int iMesh, GmfKwdCod what, int node1, int node2,
 
 void MG_Hexotic_API::GmfCloseMesh( int iMesh )
 {
-  if ( iMesh == 1 )
-    _isMesh = false;
-
   if ( _useLib ) {
 #ifdef USE_MG_LIBS
     return;