mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +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")
|
active_classification_index: IntProperty(name="Active Classification Index")
|
||||||
keyword: StringProperty(name="Keyword")
|
keyword: StringProperty(name="Keyword")
|
||||||
should_filter_ifc_class: BoolProperty(name="Filter Active IFC Class", default=True)
|
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)
|
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:
|
def load_bsdd(client: bsdd.Client, bsdd: tool.Bsdd) -> None:
|
||||||
bsdd.clear_domains()
|
bsdd.clear_domains()
|
||||||
if bsdd.should_load_preview_domains:
|
if bsdd.should_load_preview_domains():
|
||||||
dictionaries = bsdd.get_dictionaries(client)
|
dictionaries = bsdd.get_dictionaries(client)
|
||||||
else:
|
else:
|
||||||
dictionaries = bsdd.get_dictionaries(client, "Active")
|
dictionaries = bsdd.get_dictionaries(client, "Active")
|
||||||
|
|||||||
Reference in New Issue
Block a user