FIX: raft_first_layer_expansion not working with tree support

jira: STUDIO-6043
github: #3355
Change-Id: Idf2a0053026a6f232a5239c3f504191321feb6ee
(cherry picked from commit 3eb35f5b1a53990d215ae4d3527917611f5083c6)
(cherry picked from commit 0589348c3264e56b9e3a16afea95a5d44983498b)
This commit is contained in:
Arthur 2024-01-26 16:19:59 +08:00 committed by Noisyfox
parent d0868d6711
commit c7febad548
3 changed files with 37 additions and 23 deletions

View file

@ -385,7 +385,7 @@ public:
size_t support_layer_count() const { return m_support_layers.size(); }
void clear_support_layers();
SupportLayer* get_support_layer(int idx) { return m_support_layers[idx]; }
SupportLayer* get_support_layer(int idx) { return idx<m_support_layers.size()? m_support_layers[idx]:nullptr; }
const SupportLayer* get_support_layer_at_printz(coordf_t print_z, coordf_t epsilon) const;
SupportLayer* get_support_layer_at_printz(coordf_t print_z, coordf_t epsilon);
SupportLayer* add_support_layer(int id, int interface_id, coordf_t height, coordf_t print_z);