Fix: The skirt data cache of the object was not cleared, causing the skirt paths to be duplicated.

Jira: STUDIO-14819

Change-Id: Id8716bc54b0b0ae027cfab7e924eb6f8daaf478c
(cherry picked from commit eac888093102bca0056780ebd285e868db9ab64b)
This commit is contained in:
weizhen.xie 2025-09-23 19:14:25 +08:00 committed by Noisyfox
parent 721c93e3d8
commit 6161c5c9bc

View file

@ -2252,6 +2252,8 @@ void Print::process(long long *time_cost_with_cache, bool use_cache)
m_skirt.clear();
m_skirt_convex_hull.clear();
m_first_layer_convex_hull.points.clear();
for (PrintObject *object : m_objects) object->m_skirt.clear();
const bool draft_shield = config().draft_shield != dsDisabled;
if (this->has_skirt() && draft_shield) {