Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/generate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ void SolveSpaceUI::MarkGroupDirty(hGroup hg, bool onlyThis) {

bool SolveSpaceUI::PruneOrphans() {
const int requests = SK.request.n;
SK.request.ClearTags();
for(Request &r : SK.request) {
if(!GroupExists(r.group))
r.tag = 1;
Expand All @@ -41,6 +42,7 @@ bool SolveSpaceUI::PruneOrphans() {
deleted.requests += requests - SK.request.n;

const int constraints = SK.constraint.n;
SK.constraint.ClearTags();
for(Constraint &c : SK.constraint) {
if(!GroupExists(c.group))
c.tag = 1;
Expand Down Expand Up @@ -106,6 +108,7 @@ bool SolveSpaceUI::PruneRequestsAndConstraints(hGroup hg) {
};

const int requests = SK.request.n;
SK.request.ClearTags();
for(Request &r : SK.request) {
if(r.group != hg) {
continue;
Expand All @@ -121,6 +124,7 @@ bool SolveSpaceUI::PruneRequestsAndConstraints(hGroup hg) {
deleted.requests += requests - SK.request.n;

const int constraints = SK.constraint.n;
SK.constraint.ClearTags();
for(Constraint &c : SK.constraint) {
if(c.group != hg)
continue;
Expand Down
1 change: 1 addition & 0 deletions src/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const hGroup Group::HGROUP_REFERENCES = { 1 };
// memory. This clears and frees them all.
//-----------------------------------------------------------------------------
void Group::Clear() {
solved.remove.Clear();
polyLoops.Clear();
bezierLoops.Clear();
bezierOpens.Clear();
Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set(testsuite_SOURCES
core/expr/test.cpp
core/locale/test.cpp
core/path/test.cpp
core/prune/test.cpp
constraint/points_coincident/test.cpp
constraint/pt_pt_distance/test.cpp
constraint/pt_plane_distance/test.cpp
Expand Down
Loading