From 55570119f7f8fe9d218d2d895e44f487b764df0a Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 30 Nov 2017 16:11:20 +0100 Subject: [PATCH] Correction of previous commit --- xs/src/slic3r/GUI/3DScene.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xs/src/slic3r/GUI/3DScene.cpp b/xs/src/slic3r/GUI/3DScene.cpp index 6679b55159..bb4183bdf0 100644 --- a/xs/src/slic3r/GUI/3DScene.cpp +++ b/xs/src/slic3r/GUI/3DScene.cpp @@ -307,10 +307,9 @@ int GLVolumeCollection::load_wipe_tower_preview( this->volumes.emplace_back(new GLVolume(color)); GLVolume &v = *this->volumes.back(); auto mesh = make_cube(width, depth, height); - v.origin = Pointf3(pos_x, pos_y, 0.); - Point origin = Point(pos_x,pos_y); - mesh.rotate(rotation_angle,&origin); + mesh.rotate_z(rotation_angle*M_PI/180.); v.indexed_vertex_array.load_mesh_flat_shading(mesh); + v.origin = Pointf3(pos_x, pos_y, 0.); // finalize_geometry() clears the vertex arrays, therefore the bounding box has to be computed before finalize_geometry(). v.bounding_box = v.indexed_vertex_array.bounding_box(); v.indexed_vertex_array.finalize_geometry(use_VBOs);