From 32fcbb6cb0622f4816906d52e3677ad4d3fd65eb Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Tue, 21 Jun 2022 16:14:40 +0200 Subject: [PATCH] Comment debuging test --- tests/libslic3r/test_cut_surface.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/libslic3r/test_cut_surface.cpp b/tests/libslic3r/test_cut_surface.cpp index 39d7c4771..54c6d5228 100644 --- a/tests/libslic3r/test_cut_surface.cpp +++ b/tests/libslic3r/test_cut_surface.cpp @@ -45,6 +45,8 @@ TEST_CASE("Cut character from surface", "[]") // its_write_obj(its, "C:/data/temp/projected.obj"); } +#ifdef DEBUG_3MF + // Test load of 3mf #include "libslic3r/Format/3mf.hpp" #include "libslic3r/Model.hpp" @@ -114,11 +116,11 @@ TEST_CASE("CutSurface in 3mf", "[]") ConfigSubstitutionContext ctxt{ForwardCompatibilitySubstitutionRule::Disable}; CHECK(load_3mf(path_to_3mf.c_str(), config, ctxt, &model, false)); CHECK(object_id >= 0); - CHECK(object_id < model.objects.size()); + CHECK((size_t)object_id < model.objects.size()); ModelObject* mo = model.objects[object_id]; CHECK(mo != nullptr); CHECK(text_volume_id >= 0); - CHECK(text_volume_id < mo->volumes.size()); + CHECK((size_t)text_volume_id < mo->volumes.size()); ModelVolume *mv_text = mo->volumes[text_volume_id]; CHECK(mv_text != nullptr); CHECK(mv_text->text_configuration.has_value()); @@ -154,3 +156,4 @@ TEST_CASE("CutSurface in 3mf", "[]") float projection_ratio = -z_range.first / (z_range.second - z_range.first); cut_surface(its, shapes, projection, projection_ratio); } +#endif // DEBUG_3MF