SPE-2591: Fix loading of custom gcodes with multiple beds (#13651)

This commit is contained in:
Lukas Matena 2024-12-04 12:38:20 +01:00
parent 4b3da02ec2
commit e1b0826df5

View File

@ -1618,7 +1618,7 @@ namespace Slic3r {
continue;
int bed_idx = 0;
try {
bed_block.second.get<int>("<xmlattr>.bed_idx");
bed_idx = bed_block.second.get<int>("<xmlattr>.bed_idx");
} catch (const boost::property_tree::ptree_bad_path&) {
// Probably an old project with no bed_idx info. Imagine that we saw 0.
}