mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fix of SPE-607
This commit is contained in:
@@ -1095,8 +1095,10 @@ Print::ApplyStatus Print::apply(const Model &model, const DynamicPrintConfig &co
|
|||||||
bool fresh = print_object.region_volumes.empty();
|
bool fresh = print_object.region_volumes.empty();
|
||||||
unsigned int volume_id = 0;
|
unsigned int volume_id = 0;
|
||||||
for (const ModelVolume *volume : model_object.volumes) {
|
for (const ModelVolume *volume : model_object.volumes) {
|
||||||
if (! volume->is_model_part() && ! volume->is_modifier())
|
if (! volume->is_model_part() && ! volume->is_modifier()) {
|
||||||
continue;
|
++ volume_id;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
int region_id = -1;
|
int region_id = -1;
|
||||||
if (&print_object == &print_object0) {
|
if (&print_object == &print_object0) {
|
||||||
// Get the config applied to this volume.
|
// Get the config applied to this volume.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public:
|
|||||||
// adds region_id, too, if necessary
|
// adds region_id, too, if necessary
|
||||||
void add_region_volume(unsigned int region_id, int volume_id) {
|
void add_region_volume(unsigned int region_id, int volume_id) {
|
||||||
if (region_id >= region_volumes.size())
|
if (region_id >= region_volumes.size())
|
||||||
region_volumes.assign(region_id + 1, std::vector<int>());
|
region_volumes.resize(region_id + 1);
|
||||||
region_volumes[region_id].emplace_back(volume_id);
|
region_volumes[region_id].emplace_back(volume_id);
|
||||||
}
|
}
|
||||||
// This is the *total* layer count (including support layers)
|
// This is the *total* layer count (including support layers)
|
||||||
|
|||||||
Reference in New Issue
Block a user