--- 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);