From ba5815c6062c7a1779b949c8212c549146574a52 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 20 Dec 2019 16:02:56 +0100 Subject: [PATCH] Fixed wrong z value after reload from disk for objects with x and y rotation --- src/slic3r/GUI/Plater.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ef3dae8d6..aeb541730 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3331,12 +3331,17 @@ void Plater::priv::reload_from_disk() new_volume->source.input_file = path; std::swap(old_model_object->volumes[old_v.volume_idx], old_model_object->volumes.back()); old_model_object->delete_volume(old_model_object->volumes.size() - 1); +#if ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE + old_model_object->ensure_on_bed(); +#endif // ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE } } } } +#if !ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE model.adjust_min_z(); +#endif // !ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE // update 3D scene update();