Merge branch 'et_reload_from_disk' of https://github.com/prusa3d/PrusaSlicer into dev
This commit is contained in:
commit
7fe691f14e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue