mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Bugfix: the region_volumes vector was not always extended after creating new regions, causing bad memory access in apply_config(). #2446
This commit is contained in:
parent
33f7b08c80
commit
5639132dae
3 changed files with 6 additions and 10 deletions
|
@ -463,7 +463,7 @@ Print::apply_config(DynamicPrintConfig config)
|
|||
|
||||
std::vector<int> ®ion_volumes = object->region_volumes[region_id];
|
||||
for (std::vector<int>::const_iterator volume_id = region_volumes.begin(); volume_id != region_volumes.end(); ++volume_id) {
|
||||
ModelVolume* volume = object->model_object()->volumes[*volume_id];
|
||||
ModelVolume* volume = object->model_object()->volumes.at(*volume_id);
|
||||
|
||||
PrintRegionConfig new_config = this->_region_config_from_model_volume(*volume);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue