From: Anthony Geay Date: Thu, 10 Feb 2022 17:17:23 +0000 (+0100) Subject: Skip key in case of old style MG X-Git-Tag: V9_8_0_1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=62a9594172260aafeb90d1dd058027105d6ac807;p=plugins%2Fghs3dplugin.git Skip key in case of old style MG --- diff --git a/src/GHS3DPlugin/MG_Tetra_API.cxx b/src/GHS3DPlugin/MG_Tetra_API.cxx index 93eb485..33319c7 100644 --- a/src/GHS3DPlugin/MG_Tetra_API.cxx +++ b/src/GHS3DPlugin/MG_Tetra_API.cxx @@ -839,7 +839,8 @@ bool MG_Tetra_API::Compute( const std::string& cmdLine, std::string& errStr ) return false; } - const_cast< std::string& >( cmdLine ) += " --key " + key; + if ( key == "1") + const_cast< std::string& >( cmdLine ) += " --key " + key; } int err = system( cmdLine.c_str() ); // run