mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-14 04:29:27 -07:00
FIX: crash when xy_dist=0 in organic tree (#11189)
jira: STUDIO-11158 Change-Id: Id98a196daf5fdc128e0c10de7d0a8f19c9014c3b (cherry picked from commit 7ac6cedff80b810350aaf3261c62131ceff4ca75) Co-authored-by: jiaxi.chen <jiaxi.chen@bambulab.com>
This commit is contained in:
parent
6ab6b37c4a
commit
398c72dd68
1 changed files with 1 additions and 0 deletions
|
|
@ -665,6 +665,7 @@ void TreeModelVolumes::calculateAvoidance(const std::vector<RadiusLayerPair> &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<int>(max_move, move_step);
|
||||
assert(move_steps > 0);
|
||||
float last_move_step = max_move - (move_steps - 1) * move_step;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue