From 7ac6cedff80b810350aaf3261c62131ceff4ca75 Mon Sep 17 00:00:00 2001 From: "jiaxi.chen" Date: Thu, 27 Mar 2025 10:50:43 +0800 Subject: [PATCH] FIX: crash when xy_dist=0 in organic tree jira: STUDIO-11158 Change-Id: Id98a196daf5fdc128e0c10de7d0a8f19c9014c3b --- src/libslic3r/Support/TreeModelVolumes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/Support/TreeModelVolumes.cpp b/src/libslic3r/Support/TreeModelVolumes.cpp index f87d69485..d7750431f 100644 --- a/src/libslic3r/Support/TreeModelVolumes.cpp +++ b/src/libslic3r/Support/TreeModelVolumes.cpp @@ -662,6 +662,7 @@ void TreeModelVolumes::calculateAvoidance(const std::vector &ke // Limiting the offset step so that unioning the shrunk latest_avoidance with the current layer collisions // will not create gaps in the resulting avoidance region letting a tree support branch tunneling through an object wall. float move_step = 1.9 * std::max(task.radius, m_current_min_xy_dist); + if (move_step < EPSILON) return; int move_steps = round_up_divide(max_move, move_step); assert(move_steps > 0); float last_move_step = max_move - (move_steps - 1) * move_step;