diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 9c59633..56fe04a 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -724,6 +724,7 @@ bool Object::setPropertyRecursive(const QString & name, QVariant value) qDebug() << "Class: " << metaObject()->className() << "took property" << name; setProperty(name, value); + init(); return true; } diff --git a/openbr/plugins/openbr_internal.h b/openbr/plugins/openbr_internal.h index 9a83163..e6a9967 100644 --- a/openbr/plugins/openbr_internal.h +++ b/openbr/plugins/openbr_internal.h @@ -206,7 +206,11 @@ public: if (br::Object::setPropertyRecursive(name, value)) return true; - return transform->setPropertyRecursive(name, value); + if (transform->setPropertyRecursive(name, value)) { + init(); + return true; + } + return false; } }; @@ -307,8 +311,10 @@ public: for (int i=0; i < this->transforms.size();i++) { - if (transforms[i]->setPropertyRecursive(name, value)) + if (transforms[i]->setPropertyRecursive(name, value)) { + init(); return true; + } } return false; }