Fix rotation direction in scad export.
parent
1fa10b65e6
commit
b2e4c731ac
|
@ -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]:
|
||||||
|
|
Loading…
Reference in New Issue