mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 02:42:08 +00:00
NEW:add hide function in assemble_view menu
1.support hide funtion in assemble view 2.fix an issue that switch printable in assemble view will make model-in-assemble-view turn transparent instead of model-in-view3D 3.fix a crash: right-click on objectlist after entering assemble view Change-Id: Ia1a7ca492637eeaacd862ba015c440a55a83ca6e
This commit is contained in:
@@ -8739,6 +8739,18 @@ void Plater::delete_all_objects_from_model()
|
||||
p->delete_all_objects_from_model();
|
||||
}
|
||||
|
||||
void Plater::set_selected_visible(bool visible)
|
||||
{
|
||||
if (p->get_curr_selection().is_empty())
|
||||
return;
|
||||
|
||||
Plater::TakeSnapshot snapshot(this, "Set Selected Objects Visible in AssembleView");
|
||||
p->m_ui_jobs.cancel_all();
|
||||
|
||||
p->get_current_canvas3D()->set_selected_visible(visible);
|
||||
}
|
||||
|
||||
|
||||
void Plater::remove_selected()
|
||||
{
|
||||
/*if (p->get_selection().is_empty())
|
||||
|
||||
Reference in New Issue
Block a user