mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00: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:
@@ -427,16 +427,18 @@ void UpdateJob::update_volume(ModelVolume *volume, TriangleMesh &&mesh, const Da
|
|||||||
volume->set_new_unique_id();
|
volume->set_new_unique_id();
|
||||||
volume->calculate_convex_hull();
|
volume->calculate_convex_hull();
|
||||||
|
|
||||||
|
GUI_App &app = wxGetApp(); // may be move to input
|
||||||
|
|
||||||
|
if (volume->name != base.volume_name) {
|
||||||
// write data from base into volume
|
// write data from base into volume
|
||||||
base.write(*volume);
|
base.write(*volume);
|
||||||
|
|
||||||
GUI_App &app = wxGetApp(); // may be move to input
|
|
||||||
if (volume->name != base.volume_name) {
|
|
||||||
volume->name = base.volume_name;
|
|
||||||
|
|
||||||
const ObjectList *obj_list = app.obj_list();
|
const ObjectList *obj_list = app.obj_list();
|
||||||
if (obj_list != nullptr)
|
if (obj_list != nullptr)
|
||||||
update_name_in_list(*obj_list, *volume);
|
update_name_in_list(*obj_list, *volume);
|
||||||
|
} else {
|
||||||
|
// write data from base into volume
|
||||||
|
base.write(*volume);
|
||||||
}
|
}
|
||||||
|
|
||||||
ModelObject *object = volume->get_object();
|
ModelObject *object = volume->get_object();
|
||||||
|
|||||||
Reference in New Issue
Block a user