Skip to content

Commit 8bfa54d

Browse files
committed
[BUGFIX] Show active bed texture when bed model overlaps
When bed models are too large they are automatically hidden when another bed is added to avoid awkward spacing between beds/overlaps. This also results in the bed texture being hidden and falling back to the default "translucent" grid view. This bugfix changes the behavior to show the bed texture on the active bed even when the model is hidden which should be save as the texture is always scaled to the bed size. Original bug report: prusa3d#13791
1 parent 7ff9138 commit 8bfa54d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/slic3r/GUI/3DBed.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,13 @@ void Bed3D::render_axes()
407407
void Bed3D::render_system(GLCanvas3D& canvas, const Transform3d& view_matrix, const Transform3d& projection_matrix, bool bottom, bool show_texture, bool is_active)
408408
{
409409
if (m_models_overlap && s_multiple_beds.get_number_of_beds() + int(s_multiple_beds.should_show_next_bed()) > 1) {
410-
render_default(bottom, false, show_texture, view_matrix, projection_matrix);
411-
return;
412-
}
413-
414-
if (!bottom)
410+
if (!is_active)
411+
render_default(bottom, false, show_texture, view_matrix, projection_matrix);
412+
} else if (!bottom) {
415413
render_model(view_matrix, projection_matrix);
414+
}
416415

417-
if (show_texture)
416+
if (show_texture && is_active)
418417
render_texture(bottom, canvas, view_matrix, projection_matrix, is_active);
419418
else if (bottom)
420419
render_contour(view_matrix, projection_matrix);

0 commit comments

Comments
 (0)