From 87f291d32bf280dad1fef051292a4ee0a2471438 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Fri, 29 Jan 2016 21:02:11 +0100 Subject: [PATCH] allow auto loading of light modules when opening study file --- src/SalomeApp/SalomeApp_VisualState.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/SalomeApp/SalomeApp_VisualState.cxx b/src/SalomeApp/SalomeApp_VisualState.cxx index a4b004c09..106500872 100644 --- a/src/SalomeApp/SalomeApp_VisualState.cxx +++ b/src/SalomeApp/SalomeApp_VisualState.cxx @@ -176,11 +176,16 @@ int SalomeApp_VisualState::storeState() CAM_Module* module = 0; while ( itM.hasNext() ) { module = itM.next(); + //DEBTRACE("---"); if ( !module ) continue; + //DEBTRACE("--- " << module->name().toStdString()); - if ( SalomeApp_Module* sModule = dynamic_cast( module ) ) { - ip->append( "AP_MODULES_LIST", sModule->moduleName().toStdString() ); - sModule->storeVisualParameters( savePoint ); + + if ( LightApp_Module* lModule = dynamic_cast( module ) ) { + //DEBTRACE("AP_MODULES_LIST append " << lModule->moduleName().toStdString()); + ip->append( "AP_MODULES_LIST", lModule->moduleName().toStdString() ); + if ( SalomeApp_Module* sModule = dynamic_cast( module ) ) + sModule->storeVisualParameters( savePoint ); } } -- 2.39.2