mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 09:05:53 +08:00
Follow-up of 9ddf2ba41ccc59650c277d5a5b4604afa8702f3b - Code cleanup
Fixed conflicts during rebase with master
This commit is contained in:
parent
ad6dcf3f10
commit
9e0bb83041
@ -761,15 +761,7 @@ void ObjectManipulation::update_reset_buttons_visibility()
|
|||||||
#endif // ENABLE_WORLD_COORDINATE
|
#endif // ENABLE_WORLD_COORDINATE
|
||||||
double min_z = 0.0;
|
double min_z = 0.0;
|
||||||
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//#if ENABLE_WORLD_COORDINATE
|
|
||||||
// if (selection.is_single_full_instance() && m_world_coordinates) {
|
|
||||||
//#else
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
if (selection.is_single_full_instance()) {
|
if (selection.is_single_full_instance()) {
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
//#endif // ENABLE_WORLD_COORDINATE
|
|
||||||
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
||||||
rotation = volume->get_instance_rotation();
|
rotation = volume->get_instance_rotation();
|
||||||
scale = volume->get_instance_scaling_factor();
|
scale = volume->get_instance_scaling_factor();
|
||||||
min_z = selection.get_scaled_instance_bounding_box().min.z();
|
min_z = selection.get_scaled_instance_bounding_box().min.z();
|
||||||
|
@ -596,12 +596,9 @@ bool Selection::requires_uniform_scale() const
|
|||||||
#if ENABLE_WORLD_COORDINATE
|
#if ENABLE_WORLD_COORDINATE
|
||||||
if (is_single_modifier() || is_single_volume())
|
if (is_single_modifier() || is_single_volume())
|
||||||
return !Geometry::is_rotation_ninety_degrees(Geometry::Transformation(get_volume(*m_list.begin())->world_matrix()).get_rotation());
|
return !Geometry::is_rotation_ninety_degrees(Geometry::Transformation(get_volume(*m_list.begin())->world_matrix()).get_rotation());
|
||||||
else if (is_single_full_instance()) {
|
else if (is_single_full_instance())
|
||||||
if (wxGetApp().obj_manipul()->get_world_coordinates())
|
return wxGetApp().obj_manipul()->get_world_coordinates() ?
|
||||||
return !Geometry::is_rotation_ninety_degrees(get_volume(*m_list.begin())->get_instance_rotation());
|
!Geometry::is_rotation_ninety_degrees(get_volume(*m_list.begin())->get_instance_rotation()) : false;
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
@ -610,7 +607,7 @@ bool Selection::requires_uniform_scale() const
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
#endif // ENABLE_WORLD_COORDINATE
|
#endif // ENABLE_WORLD_COORDINATE
|
||||||
}
|
}
|
||||||
|
|
||||||
int Selection::get_object_idx() const
|
int Selection::get_object_idx() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user