Merge branch 'et_reload_from_disk' of https://github.com/prusa3d/PrusaSlicer into dev

This commit is contained in:
Enrico Turri 2019-09-12 10:46:32 +02:00
commit 7fe691f14e

View file

@ -3128,11 +3128,14 @@ void Plater::priv::reload_from_disk()
object->add_volume(*v);
}
Vec3d offset = object_orig->origin_translation - object->origin_translation;
if (object->volumes.size() == object_orig->volumes.size())
{
for (size_t i = 0; i < object->volumes.size(); i++)
{
object->volumes[i]->config.apply(object_orig->volumes[i]->config);
object->volumes[i]->translate(offset);
}
}