Commits

saar drimer committed 9b76471

dont add a lyer index if commandline option present

Comments (0)

Files changed (1)

 
 
     # add layer index for the specified layers
-    if cfg['board'].get('layer_index') is not None:
-        add_layer_index(['copper', 'soldermask', 'silkscreen'])
+    if cfg['board'].get('no_layer_index') is False:
+        if cfg['board'].get('layer_index') is not None:
+            add_layer_index(['copper', 'soldermask', 'silkscreen'])
 
     # add drill index
     if cfg['board'].get('drill_index') is not None: