mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 08:28:42 +03:00
Prusa 2.7.2
This commit is contained in:
@@ -688,6 +688,8 @@ void ObjectList::update_name_in_model(const wxDataViewItem& item) const
|
||||
//update object name with text marker in ObjectList
|
||||
m_objects_model->SetName(get_item_name(obj->name, true), item);
|
||||
}
|
||||
// Renaming an object should invalidate gcode export - schedule Print::apply call.
|
||||
wxGetApp().plater()->schedule_background_process();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1896,7 +1898,7 @@ void ObjectList::del_info_item(const int obj_idx, InfoItemType type)
|
||||
cnv->get_gizmos_manager().reset_all_states();
|
||||
Plater::TakeSnapshot(plater, _L("Remove Multi Material painting"));
|
||||
for (ModelVolume* mv : (*m_objects)[obj_idx]->volumes)
|
||||
mv->mmu_segmentation_facets.reset();
|
||||
mv->mm_segmentation_facets.reset();
|
||||
break;
|
||||
|
||||
case InfoItemType::Sinking:
|
||||
@@ -2888,7 +2890,7 @@ void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selectio
|
||||
[type](const ModelVolume *mv) {
|
||||
return !(type == InfoItemType::CustomSupports ? mv->supported_facets.empty() :
|
||||
type == InfoItemType::CustomSeam ? mv->seam_facets.empty() :
|
||||
mv->mmu_segmentation_facets.empty());
|
||||
mv->mm_segmentation_facets.empty());
|
||||
});
|
||||
break;
|
||||
|
||||
@@ -4663,21 +4665,7 @@ void ObjectList::fix_through_winsdk()
|
||||
progress_dlg.Update(100, "");
|
||||
|
||||
// Show info notification
|
||||
wxString msg;
|
||||
wxString bullet_suf = "\n - ";
|
||||
if (!succes_models.empty()) {
|
||||
msg = _L_PLURAL("The following model was repaired successfully", "The following models were repaired successfully", succes_models.size()) + ":";
|
||||
for (auto& model : succes_models)
|
||||
msg += bullet_suf + from_u8(model);
|
||||
msg += "\n\n";
|
||||
}
|
||||
if (!failed_models.empty()) {
|
||||
msg += _L_PLURAL("Folowing model repair failed", "Folowing models repair failed", failed_models.size()) + ":\n";
|
||||
for (auto& model : failed_models)
|
||||
msg += bullet_suf + from_u8(model.first) + ": " + _(model.second);
|
||||
}
|
||||
if (msg.IsEmpty())
|
||||
msg = _L("Repairing was canceled");
|
||||
wxString msg = MenuFactory::get_repaire_result_message(succes_models, failed_models);
|
||||
plater->get_notification_manager()->push_notification(NotificationType::RepairFinished, NotificationManager::NotificationLevel::PrintInfoShortNotificationLevel, boost::nowide::narrow(msg));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user