From 25c2c1eef93394f98b2ac494f5b29a38a8797656 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 10 Feb 2022 18:17:23 +0100 Subject: [PATCH] Skip key in case of old style MG --- src/GHS3DPlugin/MG_Tetra_API.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2