mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 18:56:13 +00:00
Allow drop of sunken objects (#14243)
This commit is contained in:
@@ -2130,7 +2130,7 @@ void MenuFactory::append_menu_item_drop(wxMenu* menu)
|
|||||||
if (plater()->canvas3D()->get_canvas_type() != GLCanvas3D::ECanvasType::CanvasView3D)
|
if (plater()->canvas3D()->get_canvas_type() != GLCanvas3D::ECanvasType::CanvasView3D)
|
||||||
return false;
|
return false;
|
||||||
else {
|
else {
|
||||||
return (plater()->get_view3D_canvas3D()->get_selection().get_bounding_box().min.z() > SINKING_Z_THRESHOLD);
|
return (std::abs(plater()->get_view3D_canvas3D()->get_selection().get_bounding_box().min.z()) > -SINKING_Z_THRESHOLD);
|
||||||
} //disable if model is on the bed / not in View3D
|
} //disable if model is on the bed / not in View3D
|
||||||
}, m_parent);
|
}, m_parent);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -525,7 +525,7 @@ void Selection::center()
|
|||||||
|
|
||||||
void Selection::drop()
|
void Selection::drop()
|
||||||
{
|
{
|
||||||
if (this->get_bounding_box().min.z() < SINKING_Z_THRESHOLD) {
|
if (std::abs(this->get_bounding_box().min.z()) < -SINKING_Z_THRESHOLD) {
|
||||||
return; // shouldnt happen, but better check anyways, already checked in append_menu_item_drop()
|
return; // shouldnt happen, but better check anyways, already checked in append_menu_item_drop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user