Reverse the projection direction of DXF exports

This commit is contained in:
Sebastian Hoogen 2014-08-18 14:50:37 +02:00 committed by Yorik van Havre
parent 7110c55c33
commit 5ecf0cb40b

View File

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