mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added take_snapshot() for adding of settings
This commit is contained in:
parent
3720e6a3a3
commit
99df9f56c4
1 changed files with 4 additions and 0 deletions
|
@ -1115,6 +1115,8 @@ void ObjectList::get_settings_choice(const wxString& category_name)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
take_snapshot(wxString::Format(_(L("Add Settings for %s")), is_part ? _(L("Sub-object")) : _(L("Object"))));
|
||||||
|
|
||||||
std::vector <std::string> selected_options;
|
std::vector <std::string> selected_options;
|
||||||
selected_options.reserve(selection_cnt);
|
selected_options.reserve(selection_cnt);
|
||||||
for (auto sel : selections)
|
for (auto sel : selections)
|
||||||
|
@ -1165,6 +1167,8 @@ void ObjectList::get_freq_settings_choice(const wxString& bundle_name)
|
||||||
assert(m_config);
|
assert(m_config);
|
||||||
auto opt_keys = m_config->keys();
|
auto opt_keys = m_config->keys();
|
||||||
|
|
||||||
|
take_snapshot(wxString::Format(_(L("Add Settings Bundle for %s")), m_objects_model->GetItemType(GetSelection()) & itObject ? _(L("Object")) : _(L("Sub-object"))));
|
||||||
|
|
||||||
const DynamicPrintConfig& from_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
const DynamicPrintConfig& from_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||||
for (auto& opt_key : options)
|
for (auto& opt_key : options)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue