src/ui/canvas.cpp

changeset 103
94719518e310
parent 100
43ce3672648a
child 104
cd4df75924b7
--- a/src/ui/canvas.cpp	Fri Feb 05 14:23:16 2021 +0200
+++ b/src/ui/canvas.cpp	Sun May 16 22:41:00 2021 +0300
@@ -68,21 +68,15 @@
 		const float angle_y = std::abs(glm::dot(vector_y, cameraDirection));
 		if (angle_x < angle_y)
 		{
-			this->newStatusText("rotate by X axis");
 			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, PI<float> / 2, glm::vec3{0, 1, 0});
 		}
 		this->updateGridMatrix();
 		this->update();
 	}
-	else
-	{
-		this->newStatusText("don't rotate");
-	}
 	PartRenderer::mouseMoveEvent(event);
 }
 

mercurial