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_9_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d49396665d4e1cd4f759bf6a70b9d5f858ae037a;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..9bf3892 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 != "0") + const_cast< std::string& >( cmdLine ) += " --key " + key; } int err = system( cmdLine.c_str() ); // run