Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2022-01-14 16:14:16 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2022-06-03 10:11:06 +0300
commitcd4704e493171f2dd1066044ca1073e6d078d457 (patch)
tree8120e1fde577912b39485a6bc6fa2580190a766b
parent6e92b4fc3b5304812e691d1df63598aed2db17b0 (diff)
Fixed warnings
Fixed conflicts during rebase with master
-rw-r--r--src/slic3r/GUI/Gizmos/GLGizmoMove.cpp2
-rw-r--r--src/slic3r/GUI/Selection.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMove.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMove.cpp
index f024bcbe4..bed9f8d11 100644
--- a/src/slic3r/GUI/Gizmos/GLGizmoMove.cpp
+++ b/src/slic3r/GUI/Gizmos/GLGizmoMove.cpp
@@ -153,8 +153,6 @@ void GLGizmoMove3D::on_render()
glsafe(::glClear(GL_DEPTH_BUFFER_BIT));
glsafe(::glEnable(GL_DEPTH_TEST));
- const Selection& selection = m_parent.get_selection();
-
#if ENABLE_WORLD_COORDINATE
glsafe(::glPushMatrix());
calc_selection_box_and_center();
diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp
index 2ee0086ab..9ec69001f 100644
--- a/src/slic3r/GUI/Selection.cpp
+++ b/src/slic3r/GUI/Selection.cpp
@@ -623,7 +623,7 @@ bool Selection::requires_uniform_scale() const
#else
return !Geometry::is_rotation_ninety_degrees(Geometry::Transformation(get_volume(*m_list.begin())->world_matrix()).get_rotation());
#endif // ENABLE_INSTANCE_COORDINATES_FOR_VOLUMES
- else if (is_single_full_instance())
+ else if (is_single_full_instance()) {
#if ENABLE_INSTANCE_COORDINATES_FOR_VOLUMES
if (coord_type == ECoordinatesType::World) {
if (!Geometry::is_rotation_ninety_degrees(get_volume(*m_list.begin())->get_instance_rotation())) {
@@ -652,12 +652,14 @@ bool Selection::requires_uniform_scale() const
}
return false;
}
+ }
if (reason != nullptr)
*reason = EUniformScaleRequiredReason::MultipleSelection;
#else
return wxGetApp().obj_manipul()->get_world_coordinates() ?
- !Geometry::is_rotation_ninety_degrees(get_volume(*m_list.begin())->get_instance_rotation()) : false;
+ !Geometry::is_rotation_ninety_degrees(get_volume(*m_list.begin())->get_instance_rotation()) : false;
+ }
#endif // ENABLE_INSTANCE_COORDINATES_FOR_VOLUMES
return true;