Browse Source

Allow to run calf UIs as bridges, closes #242

tags/1.9.7
falkTX 9 years ago
parent
commit
089d825835
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/backend/plugin/CarlaPluginLV2.cpp

+ 3
- 1
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -4062,8 +4062,10 @@ public:
#ifndef LV2_UIS_ONLY_INPROCESS #ifndef LV2_UIS_ONLY_INPROCESS
const LV2_RDF_UI* const rdfUI(&fRdfDescriptor->UIs[uiId]); const LV2_RDF_UI* const rdfUI(&fRdfDescriptor->UIs[uiId]);


// Calf UIs are mostly useless without their special graphs
// but they can be crashy under certain conditions, so follow user preferences
if (std::strstr(rdfUI->URI, "http://calf.sourceforge.net/plugins/gui/") != nullptr) if (std::strstr(rdfUI->URI, "http://calf.sourceforge.net/plugins/gui/") != nullptr)
return false;
return pData->engine->getOptions().preferUiBridges;


for (uint32_t i=0; i < rdfUI->FeatureCount; ++i) for (uint32_t i=0; i < rdfUI->FeatureCount; ++i)
{ {


Loading…
Cancel
Save