Added SimplificationDialog
This commit is contained in:
parent
d243282d32
commit
6f9f4f78b7
9 changed files with 181 additions and 0 deletions
src/slic3r/GUI
|
@ -4,6 +4,7 @@
|
|||
#include "GUI_Factories.hpp"
|
||||
#include "GUI_ObjectManipulation.hpp"
|
||||
#include "GUI_ObjectLayers.hpp"
|
||||
#include "SimplificationDialog.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "Plater.hpp"
|
||||
|
@ -3759,6 +3760,17 @@ void ObjectList::fix_through_netfabb()
|
|||
update_item_error_icon(obj_idx, vol_idx);
|
||||
}
|
||||
|
||||
void ObjectList::simplify()
|
||||
{
|
||||
int obj_idx, vol_idx;
|
||||
get_selected_item_indexes(obj_idx, vol_idx);
|
||||
|
||||
SimplificationDialog dlg(this);
|
||||
dlg.ShowModal();
|
||||
|
||||
wxGetApp().plater()->simplify(obj_idx, vol_idx);
|
||||
}
|
||||
|
||||
void ObjectList::update_item_error_icon(const int obj_idx, const int vol_idx) const
|
||||
{
|
||||
const wxDataViewItem item = vol_idx <0 ? m_objects_model->GetItemById(obj_idx) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue