From af82669bd339774546e433fb0a19db2a4d4f02a5 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 28 Oct 2018 20:45:16 +0100 Subject: [PATCH] do not fail on missing image or model plugin, they can be optional --- libs/modulesystem/modulesmap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/modulesystem/modulesmap.h b/libs/modulesystem/modulesmap.h index a48a083b..1826390b 100644 --- a/libs/modulesystem/modulesmap.h +++ b/libs/modulesystem/modulesmap.h @@ -115,9 +115,12 @@ ModulesRef( const char* names ){ } Module* module = globalModuleServer().findModule( typename Type::Name(), typename Type::Version(), name ); if ( module == 0 ) { - globalModuleServer().setError( true ); globalErrorStream() << "ModulesRef::initialise: type=" << makeQuoted( typename Type::Name() ) << " version=" << makeQuoted( typename Type::Version() ) << " name=" << makeQuoted( name ) << " - not found\n"; - break; + // do not fail on missing image or model plugin, they can be optional + if ( !string_equal( typename Type::Name(), "image" ) && !string_equal( typename Type::Name(), "model" ) ){ + globalModuleServer().setError( true ); + break; + } } else {