mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Merge branch 'master' of https://github.com/prusa3d/Slic3r into objects_centering
This commit is contained in:
commit
9a69305367
7 changed files with 134 additions and 45 deletions
|
@ -2381,8 +2381,7 @@ bool Plater::priv::init_common_menu(wxMenu* menu, const bool is_part/* = false*/
|
|||
[this](wxCommandEvent&) { q->set_number_of_copies(); }, "textfield.png");
|
||||
|
||||
menu->AppendSeparator();
|
||||
wxMenuItem* item_instance_to_object = append_menu_item(menu, wxID_ANY, _(L("Set as a Separated Object")) + dots, _(L("Set an Instance as a Separate Object")),
|
||||
[this](wxCommandEvent&) { q->instance_to_separated_object(); }, "");
|
||||
wxMenuItem* item_instance_to_object = sidebar->obj_list()->append_menu_item_instance_to_object(menu);
|
||||
|
||||
if (q != nullptr)
|
||||
{
|
||||
|
@ -2792,16 +2791,6 @@ void Plater::set_number_of_copies(/*size_t num*/)
|
|||
decrease_instances(-diff);
|
||||
}
|
||||
|
||||
void Plater::instance_to_separated_object()
|
||||
{
|
||||
const int obj_idx = p->get_selected_object_idx();
|
||||
const int inst_idx = p->get_selection().get_instance_idx();
|
||||
if (obj_idx == -1 || inst_idx == -1)
|
||||
return;
|
||||
|
||||
sidebar().obj_list()->instance_to_separated_object(obj_idx, inst_idx);
|
||||
}
|
||||
|
||||
bool Plater::is_selection_empty() const
|
||||
{
|
||||
return p->get_selection().is_empty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue