bsdd - fix bug when it was always loading preview and inactive domains

This commit is contained in:
Andrej730
2024-07-25 17:10:39 +05:00
parent 455fe740c7
commit d7b85d1264
2 changed files with 4 additions and 2 deletions
@@ -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)
+1 -1
View File
@@ -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")