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:
authorEnrico Turri <enricoturri@seznam.cz>2019-09-19 10:09:11 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-09-19 10:09:11 +0300
commit3a40565d03608c2440e772d58121ef16fc84744e (patch)
tree9ac31c81e2f12ca7d98c2c22671e645332692b09 /src/slic3r/GUI/Selection.cpp
parenta37ad3b55220c5b27a51d70631d0e338330e7a26 (diff)
Added tech ENABLE_ENHANCED_RELOAD_FROM_DISK
1) Reworked void Plater::priv::reload_from_disk() to be more general 2) Added source data to class ModelVolume 3) Modified .3mf import/export to save/load volume matrices and source data 4) Incremented .3mf version to 2
Diffstat (limited to 'src/slic3r/GUI/Selection.cpp')
-rw-r--r--src/slic3r/GUI/Selection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp
index 40fbbbac6..346f46e00 100644
--- a/src/slic3r/GUI/Selection.cpp
+++ b/src/slic3r/GUI/Selection.cpp
@@ -472,7 +472,11 @@ void Selection::volumes_changed(const std::vector<size_t> &map_volume_old_to_new
for (unsigned int idx : m_list)
if (map_volume_old_to_new[idx] != size_t(-1)) {
unsigned int new_idx = (unsigned int)map_volume_old_to_new[idx];
+#if ENABLE_ENHANCED_RELOAD_FROM_DISK
+ (*m_volumes)[new_idx]->selected = true;
+#else
assert((*m_volumes)[new_idx]->selected);
+#endif // ENABLE_ENHANCED_RELOAD_FROM_DISK
list_new.insert(new_idx);
}
m_list = std::move(list_new);