mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 17:38:43 +03:00
fix bug
This commit is contained in:
@@ -4913,9 +4913,8 @@ void GLCanvas3D::_render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||||||
|
|
||||||
const ModelObjectPtrs &model_objects = GUI::wxGetApp().model().objects;
|
const ModelObjectPtrs &model_objects = GUI::wxGetApp().model().objects;
|
||||||
std::vector<ColorRGBA> extruders_colors = get_extruders_colors();
|
std::vector<ColorRGBA> extruders_colors = get_extruders_colors();
|
||||||
|
//Y18
|
||||||
if (thumbnail_params.transparent_background)
|
if (thumbnail_params.transparent_background)
|
||||||
//Y18
|
|
||||||
glsafe(::glClearColor(1.0f, 1.0f, 1.0f, 1.0f));
|
glsafe(::glClearColor(1.0f, 1.0f, 1.0f, 1.0f));
|
||||||
|
|
||||||
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
|
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
|
||||||
@@ -4947,7 +4946,9 @@ void GLCanvas3D::_render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
shader->set_uniform("emission_factor", 0.0f);
|
shader->set_uniform("emission_factor", 0.0f);
|
||||||
vol->model.set_color((vol->printable && !vol->is_outside) ? vol->color : ColorRGBA::GRAY());
|
//Y18
|
||||||
|
vol->model.set_color((vol->printable && !vol->is_outside) ? ColorRGBA { 0.2f, 0.6f, 1.0f, 1.0f } : ColorRGBA::GRAY());
|
||||||
|
//vol->model.set_color((vol->printable && !vol->is_outside) ? vol->color : ColorRGBA::GRAY());
|
||||||
}
|
}
|
||||||
// the volume may have been deactivated by an active gizmo
|
// the volume may have been deactivated by an active gizmo
|
||||||
const bool is_active = vol->is_active;
|
const bool is_active = vol->is_active;
|
||||||
@@ -4979,9 +4980,9 @@ void GLCanvas3D::_render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
|||||||
vol->is_active = is_active;
|
vol->is_active = is_active;
|
||||||
}
|
}
|
||||||
glsafe(::glDisable(GL_DEPTH_TEST));
|
glsafe(::glDisable(GL_DEPTH_TEST));
|
||||||
|
//Y18
|
||||||
if (thumbnail_params.show_bed)
|
// if (thumbnail_params.show_bed)
|
||||||
_render_bed(view_matrix, projection_matrix, !camera.is_looking_downward());
|
// _render_bed(view_matrix, projection_matrix, !camera.is_looking_downward());
|
||||||
|
|
||||||
// restore background color
|
// restore background color
|
||||||
if (thumbnail_params.transparent_background)
|
if (thumbnail_params.transparent_background)
|
||||||
|
|||||||
@@ -921,7 +921,8 @@ Sidebar::Sidebar(Plater *parent)
|
|||||||
int bmp_px_cnt = 32;
|
int bmp_px_cnt = 32;
|
||||||
#endif //__APPLE__
|
#endif //__APPLE__
|
||||||
ScalableBitmap bmp = ScalableBitmap(this, icon_name, bmp_px_cnt);
|
ScalableBitmap bmp = ScalableBitmap(this, icon_name, bmp_px_cnt);
|
||||||
*btn = new ScalableButton(this, wxID_ANY, bmp, "", wxBU_EXACTFIT);
|
*btn = new ScalableButton(this, wxID_ANY, bmp, label, wxBU_EXACTFIT);
|
||||||
|
(*btn)->SetFont(wxGetApp().bold_font());
|
||||||
wxGetApp().SetWindowVariantForButton((*btn));
|
wxGetApp().SetWindowVariantForButton((*btn));
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -939,9 +940,9 @@ Sidebar::Sidebar(Plater *parent)
|
|||||||
(*btn)->Hide();
|
(*btn)->Hide();
|
||||||
};
|
};
|
||||||
|
|
||||||
init_scalable_btn(&p->btn_send_gcode , "export_gcode", _L("Send to printer") + " " +GUI::shortkey_ctrl_prefix() + "Shift+G");
|
init_scalable_btn(&p->btn_send_gcode, "export_gcode", _L("Send to printer"), _L("Send to printer") + " " + GUI::shortkey_ctrl_prefix() + "Shift+G");
|
||||||
// init_scalable_btn(&p->btn_eject_device, "eject_sd" , _L("Remove device ") + GUI::shortkey_ctrl_prefix() + "T");
|
// init_scalable_btn(&p->btn_eject_device, "eject_sd" , _L("Remove device ") + GUI::shortkey_ctrl_prefix() + "T");
|
||||||
init_scalable_btn(&p->btn_export_gcode_removable, "export_to_sd", _L("Export to SD card / Flash drive") + " " + GUI::shortkey_ctrl_prefix() + "U");
|
init_scalable_btn(&p->btn_export_gcode_removable, "export_to_sd", _L("Export"), _L("Export to SD card / Flash drive") + " " + GUI::shortkey_ctrl_prefix() + "U");
|
||||||
//Y14
|
//Y14
|
||||||
// regular buttons "Slice now" and "Export G-code"
|
// regular buttons "Slice now" and "Export G-code"
|
||||||
|
|
||||||
|
|||||||
@@ -3163,14 +3163,6 @@ void TabPrinter::build_extruder_pages(size_t n_before_extruders)
|
|||||||
|
|
||||||
auto optgroup = page->new_optgroup(L("Size"));
|
auto optgroup = page->new_optgroup(L("Size"));
|
||||||
optgroup->append_single_option_line("nozzle_diameter", "", extruder_idx);
|
optgroup->append_single_option_line("nozzle_diameter", "", extruder_idx);
|
||||||
//Y11
|
|
||||||
wxString description_line_text = _L("If you want to use other size nozzles, you need to modify the extrusion width and pressure advance.");
|
|
||||||
Line line = { "", "" };
|
|
||||||
line.full_width = 1;
|
|
||||||
line.widget = [this, description_line_text](wxWindow* parent) {
|
|
||||||
return description_line_widget(parent, &m_nozzle_diameter_description_line, description_line_text);
|
|
||||||
};
|
|
||||||
optgroup->append_line(line);
|
|
||||||
|
|
||||||
optgroup->m_on_change = [this, extruder_idx](const t_config_option_key&opt_key, boost::any value)
|
optgroup->m_on_change = [this, extruder_idx](const t_config_option_key&opt_key, boost::any value)
|
||||||
{
|
{
|
||||||
@@ -3249,7 +3241,7 @@ void TabPrinter::build_extruder_pages(size_t n_before_extruders)
|
|||||||
|
|
||||||
return sizer;
|
return sizer;
|
||||||
};
|
};
|
||||||
line = optgroup->create_single_option_line("extruder_colour", "", extruder_idx);
|
Line line = optgroup->create_single_option_line("extruder_colour", "", extruder_idx);
|
||||||
line.append_widget(reset_to_filament_color);
|
line.append_widget(reset_to_filament_color);
|
||||||
optgroup->append_line(line);
|
optgroup->append_line(line);
|
||||||
|
|
||||||
|
|||||||
@@ -501,8 +501,6 @@ private:
|
|||||||
bool m_rebuild_kinematics_page = false;
|
bool m_rebuild_kinematics_page = false;
|
||||||
ogStaticText* m_machine_limits_description_line {nullptr};
|
ogStaticText* m_machine_limits_description_line {nullptr};
|
||||||
void update_machine_limits_description(const MachineLimitsUsage usage);
|
void update_machine_limits_description(const MachineLimitsUsage usage);
|
||||||
//Y11
|
|
||||||
ogStaticText* m_nozzle_diameter_description_line {nullptr};
|
|
||||||
|
|
||||||
ogStaticText* m_fff_print_host_upload_description_line {nullptr};
|
ogStaticText* m_fff_print_host_upload_description_line {nullptr};
|
||||||
ogStaticText* m_sla_print_host_upload_description_line {nullptr};
|
ogStaticText* m_sla_print_host_upload_description_line {nullptr};
|
||||||
|
|||||||
Reference in New Issue
Block a user