diff --git a/sources/glumodel.cpp b/sources/glumodel.cpp index 8825884..19ed672 100644 --- a/sources/glumodel.cpp +++ b/sources/glumodel.cpp @@ -194,6 +194,8 @@ /* scale it to the desired length, width and height */ glScalef(len, len, len); + glScalef(scalefactor, scalefactor, scalefactor); + /* draw material */ mat->draw(); @@ -232,6 +234,8 @@ /* move it to the desired position */ glTranslatef(pos->x(), pos->y(), pos->z()); + glScalef(scalefactor, scalefactor, scalefactor); + for (int i = 0; i < multiplicity; i++) { iter(iters); glRotatef(mult_angle, 1,0,0);