Skip to content

Commit

Permalink
Reverse the projection direction of DXF exports
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 authored and yorikvanhavre committed Aug 18, 2014
1 parent 7110c55 commit 5ecf0cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Draft/importDXF.py
Expand Up @@ -1608,7 +1608,8 @@ def export(objectslist,filename,nospline=False,lwPoly=False):
if not ob.Shape.isNull():
writeMesh(ob,dxf)
elif gui and FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetBool("dxfproject"):
direction = FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
direction = FreeCADGui.ActiveDocument.ActiveView.\
getViewDirection().multiply(-1)
sh = projectShape(ob.Shape,direction)
else:
if ob.Shape.Volume > 0:
Expand Down

0 comments on commit 5ecf0cb

Please sign in to comment.