mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 22:00:39 +08:00
This commit is contained in:
parent
8dc1d70d85
commit
3ef556f43c
@ -1239,7 +1239,10 @@ Print::ApplyStatus Print::apply(const Model &model, DynamicPrintConfig new_full_
|
|||||||
model_volume_list_copy_configs(model_object /* dst */, model_object_new /* src */, ModelVolumeType::PARAMETER_MODIFIER);
|
model_volume_list_copy_configs(model_object /* dst */, model_object_new /* src */, ModelVolumeType::PARAMETER_MODIFIER);
|
||||||
layer_height_ranges_copy_configs(model_object.layer_config_ranges /* dst */, model_object_new.layer_config_ranges /* src */);
|
layer_height_ranges_copy_configs(model_object.layer_config_ranges /* dst */, model_object_new.layer_config_ranges /* src */);
|
||||||
// Copy the ModelObject name, input_file and instances. The instances will be compared against PrintObject instances in the next step.
|
// Copy the ModelObject name, input_file and instances. The instances will be compared against PrintObject instances in the next step.
|
||||||
model_object.name = model_object_new.name;
|
if (model_object.name != model_object_new.name) {
|
||||||
|
update_apply_status(this->invalidate_step(psGCodeExport));
|
||||||
|
model_object.name = model_object_new.name;
|
||||||
|
}
|
||||||
model_object.input_file = model_object_new.input_file;
|
model_object.input_file = model_object_new.input_file;
|
||||||
// Only refresh ModelInstances if there is any change.
|
// Only refresh ModelInstances if there is any change.
|
||||||
if (model_object.instances.size() != model_object_new.instances.size() ||
|
if (model_object.instances.size() != model_object_new.instances.size() ||
|
||||||
|
@ -694,6 +694,8 @@ void ObjectList::update_name_in_model(const wxDataViewItem& item) const
|
|||||||
//update object name with text marker in ObjectList
|
//update object name with text marker in ObjectList
|
||||||
m_objects_model->SetName(get_item_name(obj->name, true), item);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user