[PcbDraw] Skipped the VCUTs layer check when the option is disabled

This commit is contained in:
Salvador E. Tropea 2022-10-19 08:59:54 -03:00
parent 0be6f40053
commit aff00b44b6
1 changed files with 3 additions and 2 deletions

View File

@ -227,7 +227,8 @@ class PcbDrawOptions(VariantOptions):
self.vcuts = False
""" Render V-CUTS on the `vcuts_layer` layer """
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'
""" [visible,all,none] Using visible only the warnings about components in the visible side are generated """
self.dpi = 300
@ -270,7 +271,7 @@ class PcbDrawOptions(VariantOptions):
else:
self.libs = ','.join(self.libs)
# 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
if isinstance(self.highlight, type):
self.highlight = None