mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Fixed application crash, when change focus from overridden option to empty space in ObjectList.
This commit is contained in:
parent
29a51bc46f
commit
ea2e07ec74
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ void ObjectSettings::update_config_values(DynamicPrintConfig* config)
|
||||||
const auto printer_technology = wxGetApp().plater()->printer_technology();
|
const auto printer_technology = wxGetApp().plater()->printer_technology();
|
||||||
const bool is_object_settings = objects_model->GetItemType(objects_model->GetParent(item)) == itObject;
|
const bool is_object_settings = objects_model->GetItemType(objects_model->GetParent(item)) == itObject;
|
||||||
|
|
||||||
|
if (!item || !objects_model->IsSettingsItem(item) || !config)
|
||||||
|
return;
|
||||||
|
|
||||||
// update config values according to configuration hierarchy
|
// update config values according to configuration hierarchy
|
||||||
DynamicPrintConfig main_config = printer_technology == ptFFF ?
|
DynamicPrintConfig main_config = printer_technology == ptFFF ?
|
||||||
wxGetApp().preset_bundle->prints.get_edited_preset().config :
|
wxGetApp().preset_bundle->prints.get_edited_preset().config :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue