From b2e4c731ac59e99b278c1dd9f4717d3b583a67dc Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Sat, 29 Oct 2011 23:07:08 +0200 Subject: [PATCH] Fix rotation direction in scad export. --- plater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plater.py b/plater.py index 0f3c17f..06bfe2d 100755 --- a/plater.py +++ b/plater.py @@ -76,7 +76,7 @@ class showstl(wx.Window): r=i.rot o=i.offsets - sf.write('translate([%s,%s,%s]) rotate([0,0,%s]) import_stl("%s");\n'%(str(o[0]),str(o[1]),str(o[2]),-r,os.path.split(i.filename)[1])) + sf.write('translate([%s,%s,%s]) rotate([0,0,%s]) import_stl("%s");\n'%(str(o[0]),str(o[1]),str(o[2]),r,os.path.split(i.filename)[1])) if r != 0: i=i.rotate([0,0,-r]) if o != [0,0,0]: