src/main.cpp

changeset 371
171d3f9638a9
parent 370
b2f9ded235a6
child 374
75efc3ba5a56
--- a/src/main.cpp	Mon Apr 10 14:18:11 2023 +0300
+++ b/src/main.cpp	Mon Apr 10 14:21:17 2023 +0300
@@ -496,7 +496,7 @@
 static void set_grid_scale(MainState* state, const float factor)
 {
 	const glm::mat4 original = state->mainWindow.gridMatrix->value();
-	const glm::mat4 unscaled = extractScaling(original).unscaled;
+	const glm::mat4 unscaled = unscale_matrix(original).unscaled;
 	const glm::mat4 rescaled = factor * unscaled;
 	state->mainWindow.gridMatrix->setValue(rescaled);
 	update_model_grid_matrix(state);

mercurial