mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 12:55:53 +08:00
Fixed warnings
This commit is contained in:
parent
9efed4be22
commit
5c581e3998
@ -3610,7 +3610,7 @@ void GCodeProcessor::post_process()
|
|||||||
last_time_insertion = rev_it->time;
|
last_time_insertion = rev_it->time;
|
||||||
const std::string out_line = line_inserter(i + 1, last_time_insertion, m_time - last_time_insertion);
|
const std::string out_line = line_inserter(i + 1, last_time_insertion, m_time - last_time_insertion);
|
||||||
rev_it_dist = std::distance(m_lines.rbegin(), rev_it) + 1;
|
rev_it_dist = std::distance(m_lines.rbegin(), rev_it) + 1;
|
||||||
const auto new_it = m_lines.insert(rev_it.base(), { out_line, rev_it->time });
|
m_lines.insert(rev_it.base(), { out_line, rev_it->time });
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
m_statistics.add_line(out_line.length());
|
m_statistics.add_line(out_line.length());
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
@ -3984,7 +3984,7 @@ void GCodeProcessor::post_process()
|
|||||||
|
|
||||||
#if ENABLE_GCODE_POSTPROCESS_BACKTRACE
|
#if ENABLE_GCODE_POSTPROCESS_BACKTRACE
|
||||||
// add lines XXX to exported gcode
|
// add lines XXX to exported gcode
|
||||||
auto process_line_T = [this, &export_lines](const std::string& gcode_line, const size_t g1_lines_counter, const ExportLines::Backtrace& backtrace) {
|
auto process_line_T = [this, &export_lines](const std::string& gcode_line, const size_t g1_lines_counter, const ExportLines::Backtrace& backtrace) {
|
||||||
const std::string cmd = GCodeReader::GCodeLine::extract_cmd(gcode_line);
|
const std::string cmd = GCodeReader::GCodeLine::extract_cmd(gcode_line);
|
||||||
if (cmd.size() >= 2) {
|
if (cmd.size() >= 2) {
|
||||||
std::stringstream ss(cmd.substr(1));
|
std::stringstream ss(cmd.substr(1));
|
||||||
|
@ -593,7 +593,7 @@ void GLVolumeCollection::load_object_auxiliary(
|
|||||||
return;
|
return;
|
||||||
const Transform3d mesh_trafo_inv = print_object->trafo().inverse();
|
const Transform3d mesh_trafo_inv = print_object->trafo().inverse();
|
||||||
|
|
||||||
auto add_volume = [this, &instances, timestamp](int obj_idx, int inst_idx, const ModelInstance& model_instance, SLAPrintObjectStep step,
|
auto add_volume = [this, timestamp](int obj_idx, int inst_idx, const ModelInstance& model_instance, SLAPrintObjectStep step,
|
||||||
const TriangleMesh& mesh, const ColorRGBA& color, std::optional<const TriangleMesh> convex_hull = std::nullopt) {
|
const TriangleMesh& mesh, const ColorRGBA& color, std::optional<const TriangleMesh> convex_hull = std::nullopt) {
|
||||||
if (mesh.empty())
|
if (mesh.empty())
|
||||||
return;
|
return;
|
||||||
|
@ -294,7 +294,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
int m_print_object_idx = -1;
|
int m_print_object_idx = -1;
|
||||||
int m_print_objects_count = 0;
|
// int m_print_objects_count = 0;
|
||||||
std::unique_ptr<MeshClipper> m_supports_clipper;
|
std::unique_ptr<MeshClipper> m_supports_clipper;
|
||||||
std::unique_ptr<MeshClipper> m_pad_clipper;
|
std::unique_ptr<MeshClipper> m_pad_clipper;
|
||||||
};
|
};
|
||||||
|
@ -460,7 +460,7 @@ bool ImGuiWrapper::button(const wxString &label, const wxString& tooltip)
|
|||||||
|
|
||||||
if (!tooltip.IsEmpty() && ImGui::IsItemHovered()) {
|
if (!tooltip.IsEmpty() && ImGui::IsItemHovered()) {
|
||||||
auto tooltip_utf8 = into_u8(tooltip);
|
auto tooltip_utf8 = into_u8(tooltip);
|
||||||
ImGui::SetTooltip(tooltip_utf8.c_str());
|
ImGui::SetTooltip(tooltip_utf8.c_str(), nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -117,7 +117,7 @@ SceneRaycaster::HitResult SceneRaycaster::hit(const Vec2d& mouse_pos, const Came
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (hit.type == SceneRaycaster::EType::Volume)
|
if (hit.type == SceneRaycaster::EType::Volume)
|
||||||
m_selected_volume_already_found = *m_selected_volume_id == decode_id(hit.type, hit.raycaster_id);
|
m_selected_volume_already_found = *m_selected_volume_id == (unsigned int)decode_id(hit.type, hit.raycaster_id);
|
||||||
|
|
||||||
m_closest_hit_pos = hit.position;
|
m_closest_hit_pos = hit.position;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user