mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-24 08:38:40 -07:00
FIX: Embossed text edit not reflected in Objects list (#11692)
Fix object list name refresh after emboss edits Refresh the object list immediately after embossed text name changes so the displayed name stays in sync.
This commit is contained in:
parent
b2a2b71b92
commit
ace2bd1349
1 changed files with 6 additions and 4 deletions
|
|
@ -427,16 +427,18 @@ void UpdateJob::update_volume(ModelVolume *volume, TriangleMesh &&mesh, const Da
|
|||
volume->set_new_unique_id();
|
||||
volume->calculate_convex_hull();
|
||||
|
||||
// write data from base into volume
|
||||
base.write(*volume);
|
||||
|
||||
GUI_App &app = wxGetApp(); // may be move to input
|
||||
|
||||
if (volume->name != base.volume_name) {
|
||||
volume->name = base.volume_name;
|
||||
// write data from base into volume
|
||||
base.write(*volume);
|
||||
|
||||
const ObjectList *obj_list = app.obj_list();
|
||||
if (obj_list != nullptr)
|
||||
update_name_in_list(*obj_list, *volume);
|
||||
} else {
|
||||
// write data from base into volume
|
||||
base.write(*volume);
|
||||
}
|
||||
|
||||
ModelObject *object = volume->get_object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue