Arch: import IFC, fix new preference for not importing Layer

This commit is contained in:
Bernd Hahnebach
2021-10-26 14:02:58 +02:00
committed by GitHub
parent fc14f67bf6
commit ea355833fd

View File

@@ -1333,7 +1333,7 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
if preferences['DEBUG'] and layers: print("Creating layers...", end="")
# print(layers)
for layer_name, layer_objects in layers.items():
if preferences['IMPORT_LAYER']:
if preferences['IMPORT_LAYER'] is False:
continue
lay = Draft.make_layer(layer_name)
# the method make_layer does some nasty debug prints