Merge branch 'fs_emboss' of https://github.com/prusa3d/PrusaSlicer into fs_emboss
This commit is contained in:
commit
1ef444ba63
5 changed files with 32 additions and 21 deletions
src/slic3r/GUI/Gizmos
|
@ -409,12 +409,10 @@ bool GLGizmoEmboss::add_volume(const std::string &name, indexed_triangle_set &it
|
|||
// decide to add as volume or new object
|
||||
const Selection &selection = m_parent.get_selection();
|
||||
if (selection.is_empty() || selection.get_object_idx() < 0) {
|
||||
TextConfiguration text_configuration = create_configuration();
|
||||
// create new object
|
||||
app.obj_list()->load_mesh_object(tm, name);
|
||||
app.obj_list()->load_mesh_object(tm, name, true, &text_configuration);
|
||||
app.mainframe->update_title();
|
||||
// get new created volume
|
||||
m_volume = app.obj_list()->objects()->back()->volumes.front();
|
||||
m_volume->text_configuration = create_configuration();
|
||||
|
||||
// load mesh cause close gizmo, soo I open it again
|
||||
m_parent.get_gizmos_manager().open_gizmo(GLGizmosManager::EType::Emboss);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue