From 0abc85d27951a0779a305c38bdd39d2464f8e609 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 17 Feb 2016 14:57:43 -0500 Subject: [PATCH] LoadStore check if child is trainable --- openbr/plugins/core/loadstore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/core/loadstore.cpp b/openbr/plugins/core/loadstore.cpp index 0435e2b..d9c80b8 100644 --- a/openbr/plugins/core/loadstore.cpp +++ b/openbr/plugins/core/loadstore.cpp @@ -66,10 +66,12 @@ private: if (transform != NULL) return; if (fileName.isEmpty()) fileName = QRegExp("^[_a-zA-Z0-9]+$").exactMatch(transformString) ? transformString : QtUtils::shortTextHash(transformString); - if (!tryLoad()) + if (!tryLoad()) { transform = make(transformString); - else + trainable = transform->trainable; + } else { trainable = false; + } } bool timeVarying() const -- libgit2 0.21.4