[PcbDraw] Skipped the VCUTs layer check when the option is disabled
This commit is contained in:
parent
0be6f40053
commit
aff00b44b6
|
|
@ -227,7 +227,8 @@ class PcbDrawOptions(VariantOptions):
|
||||||
self.vcuts = False
|
self.vcuts = False
|
||||||
""" Render V-CUTS on the `vcuts_layer` layer """
|
""" Render V-CUTS on the `vcuts_layer` layer """
|
||||||
self.vcuts_layer = 'Cmts.User'
|
self.vcuts_layer = 'Cmts.User'
|
||||||
""" Layer to render the V-CUTS, only used when `vcuts` is enabled """
|
""" Layer to render the V-CUTS, only used when `vcuts` is enabled.
|
||||||
|
Note that any other content from this layer will be included """
|
||||||
self.warnings = 'visible'
|
self.warnings = 'visible'
|
||||||
""" [visible,all,none] Using visible only the warnings about components in the visible side are generated """
|
""" [visible,all,none] Using visible only the warnings about components in the visible side are generated """
|
||||||
self.dpi = 300
|
self.dpi = 300
|
||||||
|
|
@ -270,7 +271,7 @@ class PcbDrawOptions(VariantOptions):
|
||||||
else:
|
else:
|
||||||
self.libs = ','.join(self.libs)
|
self.libs = ','.join(self.libs)
|
||||||
# V-CUTS layer
|
# V-CUTS layer
|
||||||
self._vcuts_layer = Layer.solve(self.vcuts_layer)[0]._id
|
self._vcuts_layer = Layer.solve(self.vcuts_layer)[0]._id if self.vcuts else 41
|
||||||
# Highlight
|
# Highlight
|
||||||
if isinstance(self.highlight, type):
|
if isinstance(self.highlight, type):
|
||||||
self.highlight = None
|
self.highlight = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue