mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-01 04:02:06 +08: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
@ -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…
x
Reference in New Issue
Block a user