do not fail on missing image or model plugin, they can be optional

This commit is contained in:
Thomas Debesse 2018-10-28 20:45:16 +01:00 committed by Garux
parent c4b79d2194
commit af82669bd3

View File

@ -115,9 +115,12 @@ ModulesRef( const char* names ){
} }
Module* module = globalModuleServer().findModule( typename Type::Name(), typename Type::Version(), name ); Module* module = globalModuleServer().findModule( typename Type::Name(), typename Type::Version(), name );
if ( module == 0 ) { 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"; 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 else
{ {