Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -2357,6 +2357,7 @@ void CuboidRenderer::renderUnclipped(const glm::vec4& color, Mode mode) { · 2356 unmodified lines | ||
| 2357 | 2357 | glm::quat rotation = cuboid->getRotation(); |
| 2358 | 2358 | glm::vec3 axis = glm::axis(rotation); |
| 2359 | 2359 | glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z); |
| 2360 | + glScalef(1.0f, cuboid->getAspectY(), cuboid->getAspectZ()); | |
| 2360 | 2361 | |
| 2361 | 2362 | glutSolidCube(cuboid->getScale() * 2.0f); |
| 2362 | 2363 | |