From dc4d86a7ae7f56f10e664269c27350f5a175ba9a Mon Sep 17 00:00:00 2001 From: bourcier Date: Mon, 21 Oct 2013 10:26:30 +0000 Subject: [PATCH] Always use PreCAD if a PreCAD option has been set, don't matter if topology has been set to PreCAD. --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index d2b92e6..0c7058a 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1010,10 +1010,9 @@ void BLSURFPlugin_BLSURF::SetParameters( const BLSURFPlugin_Hypothesis::TOptionValues & preCADopts = hyp->GetPreCADOptionValues(); for ( opIt = preCADopts.begin(); opIt != preCADopts.end(); ++opIt ) if ( !opIt->second.empty() ) { - if (_topology == BLSURFPlugin_Hypothesis::PreCAD) { - MESSAGE("precad_set_param(): " << opIt->first << " = " << opIt->second); - precad_set_param(pcs, opIt->first.c_str(), opIt->second.c_str()); - } + *use_precad = true; + MESSAGE("precad_set_param(): " << opIt->first << " = " << opIt->second); + precad_set_param(pcs, opIt->first.c_str(), opIt->second.c_str()); } } // else { -- 2.39.2