From 0b4095338b8dec786c2d3fe7ba1a955bbd674f8d Mon Sep 17 00:00:00 2001 From: Konstantin Leonenko Date: Mon, 19 Oct 2020 16:20:24 +0100 Subject: [PATCH] Update Tracker.h set follower label before calling the setup method --- libs/ofxCv/include/ofxCv/Tracker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ofxCv/include/ofxCv/Tracker.h b/libs/ofxCv/include/ofxCv/Tracker.h index c3fa4d3..6b55e7a 100644 --- a/libs/ofxCv/include/ofxCv/Tracker.h +++ b/libs/ofxCv/include/ofxCv/Tracker.h @@ -420,8 +420,8 @@ namespace ofxCv { unsigned int curLabel = Tracker::newLabels[i]; labels.push_back(curLabel); followers.push_back(F()); - followers.back().setup(Tracker::getCurrent(curLabel)); followers.back().setLabel(curLabel); + followers.back().setup(Tracker::getCurrent(curLabel)); } // remove dead for(int i = labels.size() - 1; i >= 0; i--) {