From 3209c48c9b3c914f72e3ed6a42385fe457b6a9ec Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 31 May 2023 13:31:55 +0200 Subject: [PATCH] Follow-up https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/0e452dcf74cacf76afe32508af9c2e768e8e08f0 - Fixed debug compilation --- src/slic3r/GUI/Gizmos/GLGizmoCut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp index 25da892ba..885f9d97a 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp @@ -2611,7 +2611,7 @@ void GLGizmoCut3D::perform_cut(const Selection& selection) // Perform cut just to get connectors const ModelObjectPtrs cut_connectors_obj = cut_mo->cut(instance_idx, get_cut_matrix(selection), attributes); - assert(create_dowels_as_separate_object ? cut_connectors_obj.size() >= 3 : cut_connectors_obj.size() == 2); + assert(dowels_count > 0 ? cut_connectors_obj.size() >= 3 : cut_connectors_obj.size() == 2); // Connectors from upper object for (const ModelVolume* volume : cut_connectors_obj[0]->volumes)