mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 18:10:39 +08:00
FIX: crash with very thin area
jira: STUDIO-12067 Change-Id: I7438c1695ee3b4c2a284dd5d29247ee9a61296f0
This commit is contained in:
parent
2e856a61c6
commit
d32c42348d
@ -2854,7 +2854,7 @@ void TreeSupport::drop_nodes()
|
||||
}
|
||||
if (node.to_buildplate || parts.empty()) //It's outside, so make it go towards the build plate.
|
||||
{
|
||||
if (nodes_per_part[0][node.position])
|
||||
if (node.type ==eCircle && nodes_per_part[0][node.position])
|
||||
p_node->position += Point(1, 1);
|
||||
nodes_per_part[0][node.position] = p_node;
|
||||
continue;
|
||||
@ -2890,7 +2890,7 @@ void TreeSupport::drop_nodes()
|
||||
}
|
||||
}
|
||||
//Put it in the best one.
|
||||
if (nodes_per_part[closest_part + 1][node.position])
|
||||
if (node.type == eCircle && nodes_per_part[closest_part + 1][node.position])
|
||||
p_node->position += Point(1, 1);
|
||||
nodes_per_part[closest_part + 1][node.position] = p_node; //Index + 1 because the 0th index is the outside part.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user