summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/polyset.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/polyset.cc b/src/polyset.cc
index b412f5f..3b3be34 100644
--- a/src/polyset.cc
+++ b/src/polyset.cc
@@ -157,7 +157,7 @@ void PolySet::render_surface(csgmode_e csgmode, const Transform3d &m, GLint *sha
}
#endif /* ENABLE_OPENCSG */
if (this->is2d) {
- double zbase = csgmode;
+ double zbase = 1; // Render 2D objects 1mm thick
glBegin(GL_TRIANGLES);
for (double z = -zbase/2; z < zbase; z += zbase)
{
@@ -248,7 +248,7 @@ void PolySet::render_edges(csgmode_e csgmode) const
{
glDisable(GL_LIGHTING);
if (this->is2d) {
- double zbase = csgmode;
+ double zbase = 1; // Render 2D objects 1mm thick
for (double z = -zbase/2; z < zbase; z += zbase)
{
for (size_t i = 0; i < borders.size(); i++) {
contact: Jan Huwald // Impressum