Using of Re run Job

This commit is contained in:
Filip Sykala 2021-11-23 22:21:14 +01:00
parent 2e41c8aafe
commit 43d200a7fb
5 changed files with 160 additions and 153 deletions
src/slic3r/GUI/Gizmos

View file

@ -472,14 +472,13 @@ bool GLGizmoEmboss::process()
// exist loaded font?
if (m_font == nullptr) return false;
EmbossJob::Data data;
data.font = m_font;
data.text_configuration = create_configuration();
data.volume_name = create_volume_name();
data.volume_ptr = m_volume;
data.object_idx = m_parent.get_selection().get_object_idx();
m_job->restart(data);
auto data = std::make_unique<EmbossData>();
data->font = m_font;
data->text_configuration = create_configuration();
data->volume_name = create_volume_name();
data->volume_ptr = m_volume;
data->object_idx = m_parent.get_selection().get_object_idx();
m_job->re_run(std::move(data));
// notification is removed befor object is changed by job
remove_notification_not_valid_font();