mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 03:03:13 +08:00
FIX: implicitly set spiral vase config for objects just loading
jira: 6514 Change-Id: I04bb2b1abeb62d4dfff4e526b723b1cf1bd5fd7f
This commit is contained in:
parent
58c1dd9c98
commit
7641be0569
@ -4278,13 +4278,16 @@ int PartPlateList::notify_instance_update(int obj_id, int instance_id, bool is_n
|
|||||||
plate->add_instance(obj_id, instance_id, false, &boundingbox);
|
plate->add_instance(obj_id, instance_id, false, &boundingbox);
|
||||||
|
|
||||||
// spiral mode, update object setting
|
// spiral mode, update object setting
|
||||||
if (!is_new) {
|
if (plate->config()->has("spiral_mode") && plate->config()->opt_bool("spiral_mode") && !is_object_config_compatible_with_spiral_vase(object)) {
|
||||||
if (plate->config()->has("spiral_mode") && plate->config()->opt_bool("spiral_mode") && !is_object_config_compatible_with_spiral_vase(object)) {
|
if (!is_new) {
|
||||||
auto answer = static_cast<TabPrintPlate*>(wxGetApp().plate_tab)->show_spiral_mode_settings_dialog(true);
|
auto answer = static_cast<TabPrintPlate*>(wxGetApp().plate_tab)->show_spiral_mode_settings_dialog(true);
|
||||||
if (answer == wxID_YES) {
|
if (answer == wxID_YES) {
|
||||||
plate->set_vase_mode_related_object_config(obj_id);
|
plate->set_vase_mode_related_object_config(obj_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
plate->set_vase_mode_related_object_config(obj_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plate->update_slice_result_valid_state();
|
plate->update_slice_result_valid_state();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user