Commit 102c606d0248d2028b8b04f3a2bfb674d4add88f

Authored by bhklein
1 parent 6760c42b

search directory above openbr as well

Showing 1 changed file with 2 additions and 1 deletions
openbr/openbr_plugin.cpp
... ... @@ -1602,7 +1602,8 @@ Transform *Transform::make(QString str, QObject *parent)
1602 1602 // Base name not found? Try constructing it via LoadStore
1603 1603 if (!Factory<Transform>::names().contains(parsed.suffix())
1604 1604 && (QFileInfo(parsed.suffix()).exists()
1605   - || QFileInfo(Globals->sdkPath + "/share/openbr/models/transforms/"+parsed.suffix()).exists())) {
  1605 + || QFileInfo(Globals->sdkPath + "/share/openbr/models/transforms/"+parsed.suffix()).exists()
  1606 + || QFileInfo(Globals->sdkPath + "/../share/openbr/models/transforms/"+parsed.suffix()).exists())) {
1606 1607 Transform *tform = make("<"+parsed.suffix()+">", parent);
1607 1608 applyAdditionalProperties(parsed, tform);
1608 1609 return tform;
... ...