Draft: Renamed Layer to VisGroup

This commit is contained in:
Yorik van Havre
2014-06-10 10:21:01 -03:00
parent 2320e994b3
commit 4e595bd7bb
9 changed files with 31 additions and 31 deletions

View File

@@ -140,8 +140,8 @@ def locateLayer(wantedLayer,color=None):
for l in layers:
if wantedLayerName==l.Label:
return l
if dxfUseDraftLayers:
newLayer = Draft.makeLayer(name=wantedLayer)
if dxfUseDraftVisGroups:
newLayer = Draft.makeVisGroup(name=wantedLayer)
else:
newLayer = doc.addObject("App::DocumentObjectGroup",wantedLayer)
newLayer.Label = wantedLayerName
@@ -1833,6 +1833,6 @@ dxfImportPoints = p.GetBool("dxfImportPoints",False)
dxfImportHatches = p.GetBool("importDxfHatches",False)
dxfUseStandardSize = p.GetBool("dxfStdSize",False)
dxfGetColors = p.GetBool("dxfGetOriginalColors",False)
dxfUseDraftLayers = p.GetBool("dxfUseDraftLayers",False)
dxfUseDraftVisGroups = p.GetBool("dxfUseDraftVisGroups",False)
dxfBrightBackground = isBrightBackground()
dxfDefaultColor = getColor()