Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-06-17 17:39:22 +0300
committerVojtech Kral <vojtech@kral.hk>2019-09-17 14:20:06 +0300
commit235b659cf97211f0b80c47008d8458b9173a3a40 (patch)
tree1e799e771c9d9e653ff5f142cfe1e62487fd65d9 /src/slic3r/Config
parentdba9925c4ed37d5b44f6672824987fa9ca0ad7b8 (diff)
WIP: ConfigWizard: 3rd party bundle installation roughly done
Diffstat (limited to 'src/slic3r/Config')
-rw-r--r--src/slic3r/Config/Snapshot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/Config/Snapshot.cpp b/src/slic3r/Config/Snapshot.cpp
index 622b31a17..521a7c531 100644
--- a/src/slic3r/Config/Snapshot.cpp
+++ b/src/slic3r/Config/Snapshot.cpp
@@ -393,9 +393,9 @@ const Snapshot& SnapshotDB::take_snapshot(const AppConfig &app_config, Snapshot:
// Read the active config bundle, parse the config version.
PresetBundle bundle;
bundle.load_configbundle((data_dir / "vendor" / (cfg.name + ".ini")).string(), PresetBundle::LOAD_CFGBUNDLE_VENDOR_ONLY);
- for (const VendorProfile &vp : bundle.vendors)
- if (vp.id == cfg.name)
- cfg.version.config_version = vp.config_version;
+ for (const auto &vp : bundle.vendors)
+ if (vp.second.id == cfg.name)
+ cfg.version.config_version = vp.second.config_version;
// Fill-in the min/max slic3r version from the config index, if possible.
try {
// Load the config index for the vendor.