Fixed a couple of warnings

This commit is contained in:
enricoturri1966 2023-05-25 14:00:54 +02:00
parent c03a9d1a3e
commit a8824d8f59
2 changed files with 0 additions and 2 deletions

View File

@ -4614,7 +4614,6 @@ void GLCanvas3D::update_sequential_clearance(bool force_contours_generation)
} }
new_hull_2d.reserve(hull_2d.points.size()); new_hull_2d.reserve(hull_2d.points.size());
const Transform3d inv_trafo = trafo.get_matrix().inverse();
for (const Point& p : hull_2d.points) { for (const Point& p : hull_2d.points) {
new_hull_2d.emplace_back(Vec3d(unscale<double>(p.x()), unscale<double>(p.y()), 0.0)); new_hull_2d.emplace_back(Vec3d(unscale<double>(p.x()), unscale<double>(p.y()), 0.0));
} }

View File

@ -1615,7 +1615,6 @@ void Selection::render_sidebar_hints(const std::string& sidebar_field)
else if (is_single_volume_or_modifier()) { else if (is_single_volume_or_modifier()) {
if (!wxGetApp().obj_manipul()->is_world_coordinates()) { if (!wxGetApp().obj_manipul()->is_world_coordinates()) {
if (wxGetApp().obj_manipul()->is_local_coordinates()) { if (wxGetApp().obj_manipul()->is_local_coordinates()) {
const GLVolume* v = (*m_volumes)[*m_list.begin()];
orient_matrix = get_bounding_box_in_current_reference_system().second; orient_matrix = get_bounding_box_in_current_reference_system().second;
orient_matrix.translation() = Vec3d::Zero(); orient_matrix.translation() = Vec3d::Zero();
} }