mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 22:09:02 +08:00
Follow-up of 6b041429f6f137add530c900c3160d431286366f - Fixed typo due to missing code edit after copy and paste
This commit is contained in:
parent
8ada191e91
commit
a74bea5a2d
@ -701,7 +701,9 @@ void Bed3D::render_default(bool bottom, bool picking)
|
||||
glsafe(::glEnable(GL_BLEND));
|
||||
glsafe(::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
|
||||
|
||||
if (m_model.get_filename().empty() && !bottom) {
|
||||
const bool has_model = !m_model.get_filename().empty();
|
||||
|
||||
if (!has_model && !bottom) {
|
||||
// draw background
|
||||
glsafe(::glDepthMask(GL_FALSE));
|
||||
m_triangles.set_color(picking ? PICKING_MODEL_COLOR : DEFAULT_MODEL_COLOR);
|
||||
@ -712,7 +714,7 @@ void Bed3D::render_default(bool bottom, bool picking)
|
||||
if (!picking) {
|
||||
// draw grid
|
||||
glsafe(::glLineWidth(1.5f * m_scale_factor));
|
||||
m_gridlines.set_color(picking ? DEFAULT_SOLID_GRID_COLOR : DEFAULT_TRANSPARENT_GRID_COLOR);
|
||||
m_gridlines.set_color(has_model && !bottom ? DEFAULT_SOLID_GRID_COLOR : DEFAULT_TRANSPARENT_GRID_COLOR);
|
||||
m_gridlines.render();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user