src/ui/canvas.cpp

changeset 96
165777a20dc7
parent 79
5fe2dd4e161a
child 100
43ce3672648a
--- a/src/ui/canvas.cpp	Thu Nov 05 14:29:58 2020 +0200
+++ b/src/ui/canvas.cpp	Sun Jan 10 15:28:44 2021 +0200
@@ -69,12 +69,12 @@
 		if (angle_x < angle_y)
 		{
 			this->newStatusText("rotate by X axis");
-			this->gridMatrix = glm::rotate(this->gridMatrix, PIf / 2, glm::vec3{1, 0, 0});
+			this->gridMatrix = glm::rotate(this->gridMatrix, PI<float> / 2, glm::vec3{1, 0, 0});
 		}
 		else
 		{
 			this->newStatusText("rotate by Y axis");
-			this->gridMatrix = glm::rotate(this->gridMatrix, PIf / 2, glm::vec3{0, 1, 0});
+			this->gridMatrix = glm::rotate(this->gridMatrix, PI<float> / 2, glm::vec3{0, 1, 0});
 		}
 		this->updateGridMatrix();
 		this->update();

mercurial