do not fail on missing image or model plugin, they can be optional
This commit is contained in:
parent
c4b79d2194
commit
af82669bd3
|
|
@ -115,10 +115,13 @@ 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";
|
||||||
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_modules.insert( name, *module );
|
m_modules.insert( name, *module );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user