mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix showstopper bug with editing pset templates module
This commit is contained in:
@@ -65,7 +65,7 @@ def getPsetTemplates(self, context):
|
||||
IfcStore.pset_template_file = ifcopenshell.open(IfcStore.pset_template_path)
|
||||
templates = IfcStore.pset_template_file.by_type("IfcPropertySetTemplate")
|
||||
psettemplates_enum.extend([(str(t.id()), t.Name, "") for t in templates])
|
||||
Data.load(IfcStore.get_file())
|
||||
Data.load(IfcStore.pset_template_file)
|
||||
return psettemplates_enum
|
||||
|
||||
|
||||
|
||||
@@ -35,10 +35,8 @@ class BIM_PT_pset_template(Panel):
|
||||
row.operator("bim.enable_editing_pset_template", text="", icon="GREASEPENCIL")
|
||||
row.operator("bim.remove_pset_template", text="", icon="X")
|
||||
|
||||
# row.operator("bim.save_pset_template", text="", icon="EXPORT")
|
||||
|
||||
if not Data.is_loaded and props.pset_template_files:
|
||||
Data.load(IfcStore.get_file())
|
||||
Data.load(IfcStore.pset_template_file)
|
||||
|
||||
if not Data.pset_templates:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user