Fix rotation direction in scad export.

master
Kliment Yanev 2011-10-29 23:07:08 +02:00
parent 1fa10b65e6
commit b2e4c731ac
1 changed files with 1 additions and 1 deletions

View File

@ -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]: