FIX: spiral mode couldn't be enabled

Support layers should be released in is_support_necessary.

Jira: STUDIO-2120
Change-Id: Id1c6fa2d8635e55be745095408dfbac38a25efa6
(cherry picked from commit f911e8d084c4fa273f8c9211112fa2f83515cfb1)
This commit is contained in:
Arthur 2023-01-29 15:21:28 +08:00 committed by Lane.Wei
parent aa36d376ec
commit 30bb96aa47

View file

@ -2630,6 +2630,7 @@ SupportNecessaryType PrintObject::is_support_necessary()
#else #else
TreeSupport tree_support(*this, m_slicing_params); TreeSupport tree_support(*this, m_slicing_params);
tree_support.detect_overhangs(); tree_support.detect_overhangs();
this->clear_support_layers();
if (tree_support.has_sharp_tails) if (tree_support.has_sharp_tails)
return SharpTail; return SharpTail;
else if (tree_support.has_cantilever) else if (tree_support.has_cantilever)