Put debug code behind #ifdef

This commit is contained in:
EiNSTeiN- 2023-07-14 18:17:48 -04:00
parent 33b9f37b0b
commit f5911c330f

View File

@ -1216,12 +1216,14 @@ PrintObject::check_nonplanar_collisions(NonplanarSurface &surface)
ApplySafetyOffset::No),
collider);
#ifdef SLIC3R_DEBUG_SLICE_PROCESSING
{
static int iRun = 0;
SVG svg(debug_out_path("Layer-%u-collider-%u_layer%.2f.svg", layer->id(), iRun++, layer->print_z), get_extents(layerm->slices().surfaces));
svg.draw_outline(collider, "black", scale_(0.1f));
svg.Close();
}
#endif
}
}
}