Skip to content

Commit

Permalink
Draft: fix mismatch of argument in get_dxf function
Browse files Browse the repository at this point in the history
The name of the argument, `projection`, in the old function
is incorrect; it should be `direction`, which was the original
argument's name when this method was split into its own module
(c79f890).
  • Loading branch information
vocx-fc authored and yorikvanhavre committed Oct 12, 2020
1 parent f799717 commit f547615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftfunctions/dxf.py
Expand Up @@ -134,10 +134,10 @@ def get_dxf(obj, direction=None):


def getDXF(obj,
projection=None):
direction=None):
"""Return DXF string of the object. DEPRECATED. Use 'get_dxf'."""
utils.use_instead("get_dxf")
return get_dxf(obj,
projection=projection)
direction=direction)

## @}

0 comments on commit f547615

Please sign in to comment.