From 9d156463b174b0b18b3aa2fe029bd9668fa306c6 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 21 Mar 2023 14:43:14 +0100 Subject: [PATCH] Fixed crash when rotating a part after slicing with sla printer --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index ea79739c40..743b4504fe 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3766,7 +3766,7 @@ void GLCanvas3D::do_rotate(const std::string& snapshot_type) model_object->instances[instance_idx]->set_offset(v->get_instance_offset()); #endif // ENABLE_WORLD_COORDINATE } - else if (selection_mode == Selection::Volume) { + else if (selection_mode == Selection::Volume && volume_idx >= 0) { #if ENABLE_WORLD_COORDINATE model_object->volumes[volume_idx]->set_transformation(v->get_volume_transformation()); #else