Commit b2e4c731 authored by Kliment Yanev's avatar Kliment Yanev

Fix rotation direction in scad export.

parent 1fa10b65
...@@ -76,7 +76,7 @@ class showstl(wx.Window): ...@@ -76,7 +76,7 @@ class showstl(wx.Window):
r=i.rot r=i.rot
o=i.offsets 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: if r != 0:
i=i.rotate([0,0,-r]) i=i.rotate([0,0,-r])
if o != [0,0,0]: if o != [0,0,0]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment