Skip to content

Commit

Permalink
Draft: Export DXF objects with BYLAYER color if applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Aug 29, 2019
1 parent 66a3cd2 commit 6fb468a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Draft/importDXF.py
Expand Up @@ -271,6 +271,13 @@ def getACI(ob,text=False):
if not gui:
return 0
else:
# detect if we need to set "BYLAYER"
for parent in ob.InList:
if Draft.getType(parent) == "Layer":
if ob in parent.Group:
if hasattr(parent,"ViewObject") and hasattr(parent.ViewObject,"OverrideChildren"):
if parent.ViewObject.OverrideChildren:
return 256 # BYLAYER
if text:
col=ob.ViewObject.TextColor
else:
Expand Down

0 comments on commit 6fb468a

Please sign in to comment.