From a9731c2eddb5f5162ded9ec6c31f5f249e28a50f Mon Sep 17 00:00:00 2001 From: Raphael Maenle <17550607+g-spacewhale@users.noreply.github.com> Date: Tue, 23 Jan 2018 09:07:26 +0100 Subject: [PATCH] readded RemoveSimilar --- Source/functions/solve/structure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/functions/solve/structure.cpp b/Source/functions/solve/structure.cpp index a583e01..3b924fc 100755 --- a/Source/functions/solve/structure.cpp +++ b/Source/functions/solve/structure.cpp @@ -141,7 +141,7 @@ bool backtrack(vector& log, Puzzle& puzzleMat) //remove similar in log Part myPart = *log.back().PieceCollector[0].second;//tmpsaves bad part log.back().PieceCollector.erase(log.back().PieceCollector.begin());//removes bad part from log - //puzzleMat.removeSimilar(log.back().PieceCollector,myPart); //removes all pieces from log that are similar to bad part + puzzleMat.removeSimilar(log.back().PieceCollector,myPart); //removes all pieces from log that are similar to bad part //TODO reprogram similar removal to allow multilayer tracking if(log.back().PieceCollector.size()) // this checks if 'removeSimilar' has cleared entire LogElement {