mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Default object color is shown in the multi-material painting gizmo when the user switches to a printer with fewer extruders than the number of extruders used to paint the object.
This commit is contained in:
parent
c0092a7b0a
commit
a467d0e30e
1 changed files with 2 additions and 0 deletions
|
@ -513,6 +513,8 @@ void TriangleSelectorMmGui::update_render_data()
|
||||||
iva = &m_iva_seed_fill;
|
iva = &m_iva_seed_fill;
|
||||||
else if (int color = int(tr.get_state()); color < int(m_iva_colors.size()))
|
else if (int color = int(tr.get_state()); color < int(m_iva_colors.size()))
|
||||||
iva = &m_iva_colors[color];
|
iva = &m_iva_colors[color];
|
||||||
|
else
|
||||||
|
iva = &m_iva_colors[0];
|
||||||
if (iva) {
|
if (iva) {
|
||||||
if (iva->vertices_and_normals_interleaved.size() + 18 > iva->vertices_and_normals_interleaved.capacity())
|
if (iva->vertices_and_normals_interleaved.size() + 18 > iva->vertices_and_normals_interleaved.capacity())
|
||||||
iva->vertices_and_normals_interleaved.reserve(next_highest_power_of_2(iva->vertices_and_normals_interleaved.size() + 18));
|
iva->vertices_and_normals_interleaved.reserve(next_highest_power_of_2(iva->vertices_and_normals_interleaved.size() + 18));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue