From 102c606d0248d2028b8b04f3a2bfb674d4add88f Mon Sep 17 00:00:00 2001 From: bhklein Date: Tue, 24 Nov 2015 14:54:14 -0500 Subject: [PATCH] search directory above openbr as well --- openbr/openbr_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 5fa7765..8ebe139 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -1602,7 +1602,8 @@ Transform *Transform::make(QString str, QObject *parent) // Base name not found? Try constructing it via LoadStore if (!Factory::names().contains(parsed.suffix()) && (QFileInfo(parsed.suffix()).exists() - || QFileInfo(Globals->sdkPath + "/share/openbr/models/transforms/"+parsed.suffix()).exists())) { + || QFileInfo(Globals->sdkPath + "/share/openbr/models/transforms/"+parsed.suffix()).exists() + || QFileInfo(Globals->sdkPath + "/../share/openbr/models/transforms/"+parsed.suffix()).exists())) { Transform *tform = make("<"+parsed.suffix()+">", parent); applyAdditionalProperties(parsed, tform); return tform; -- libgit2 0.21.4