Commit bd7a2f642ee156d33058fae071305e808144b15f
Merge pull request #66 from biometrics/newOpenTransform
Updated openTransform to not overwrite Templates with matrix data
Showing
1 changed file
with
1 additions
and
0 deletions
openbr/plugins/misc.cpp
| ... | ... | @@ -35,6 +35,7 @@ class OpenTransform : public UntrainableMetaTransform |
| 35 | 35 | |
| 36 | 36 | void project(const Template &src, Template &dst) const |
| 37 | 37 | { |
| 38 | + if (!src.isEmpty()) { dst = src; return; } | |
| 38 | 39 | if (Globals->verbose) qDebug("Opening %s", qPrintable(src.file.flat())); |
| 39 | 40 | dst.file = src.file; |
| 40 | 41 | foreach (const File &file, src.file.split()) { | ... | ... |