From 2ccdfe68531265a51f6f5a7a8788cdbdf765b74f Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 8 Jan 2019 15:26:27 +0100 Subject: [PATCH] Fixed typo --- src/libslic3r/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Geometry.cpp b/src/libslic3r/Geometry.cpp index ba9c7b00e..fc5b158c7 100644 --- a/src/libslic3r/Geometry.cpp +++ b/src/libslic3r/Geometry.cpp @@ -1194,7 +1194,7 @@ Vec3d extract_euler_angles(const Eigen::Matrix& } else { - angles(1) = 0.0; + angles(0) = 0.0; angles(1) = ::atan2(-rotation_matrix(2, 0), sy); angles(2) = (angles(1) >-0.0) ? ::atan2(rotation_matrix(1, 2), rotation_matrix(1, 1)) : ::atan2(-rotation_matrix(1, 2), rotation_matrix(1, 1)); }