Add support for free plugins which don't implement any specialised interface

This commit is contained in:
AnyOldName3
2018-08-15 15:34:08 +01:00
parent 51b59de04d
commit b70fa8174e
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -1320,6 +1320,8 @@ QList<QObject*> PythonRunner::instantiate(const QString &pluginName)
TRY_PLUGIN_TYPE(IPluginModPage, pluginObj);
TRY_PLUGIN_TYPE(IPluginPreview, pluginObj);
TRY_PLUGIN_TYPE(IPluginTool, pluginObj);
if (interfaceList.isEmpty())
TRY_PLUGIN_TYPE(IPluginWrapper, pluginObj);
return interfaceList;
} catch (const bpy::error_already_set&) {