summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glitem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glitem.cpp b/src/glitem.cpp
index 47e2c03..016550b 100644
--- a/src/glitem.cpp
+++ b/src/glitem.cpp
@@ -432,9 +432,13 @@ void GLItem::createF(double height)
void GLItem::drawF(double height)
{
- m_renderer->scale(QVector3D(300.0, 300.0, 300.0));
+ m_renderer->pushMvMatrix();
+
+ m_renderer->scale(QVector3D(10.0, 10.0, 10.0));
createCube(QVector3D(0.0, 0.0, 0.0), QVector3D(1.0, 1.0, 1.0));
+
+ m_renderer->popMvMatrix();
}
void GLItem::createAxis(double length, const QVector3D & origin, const QVector3D & axis,