mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
bsdd - fix bug when it was always loading preview and inactive domains
This commit is contained in:
@@ -63,5 +63,7 @@ class BIMBSDDProperties(PropertyGroup):
|
||||
active_classification_index: IntProperty(name="Active Classification Index")
|
||||
keyword: StringProperty(name="Keyword")
|
||||
should_filter_ifc_class: BoolProperty(name="Filter Active IFC Class", default=True)
|
||||
load_preview_domains: BoolProperty(name="Load Preview Domains", default=False)
|
||||
load_preview_domains: BoolProperty(
|
||||
name="Load Preview Domains", description="Whether it should load preview and inactive domains", default=False
|
||||
)
|
||||
classification_psets: CollectionProperty(name="Classification Psets", type=BSDDPset)
|
||||
|
||||
@@ -37,7 +37,7 @@ def get_class_properties(client: bsdd.Client, bsdd: tool.Bsdd) -> None:
|
||||
|
||||
def load_bsdd(client: bsdd.Client, bsdd: tool.Bsdd) -> None:
|
||||
bsdd.clear_domains()
|
||||
if bsdd.should_load_preview_domains:
|
||||
if bsdd.should_load_preview_domains():
|
||||
dictionaries = bsdd.get_dictionaries(client)
|
||||
else:
|
||||
dictionaries = bsdd.get_dictionaries(client, "Active")
|
||||
|
||||
Reference in New Issue
Block a user