Minor signature clean up to tool.Model.load_openings (unused arg)

This commit is contained in:
Dion Moult
2024-06-30 21:46:21 +10:00
parent 73f546aab1
commit f2c3e62ba1
3 changed files with 2 additions and 4 deletions
@@ -742,7 +742,6 @@ class ShowOpenings(Operator, tool.Ifc.Operator):
if tool.Ifc.is_moved(obj):
blenderbim.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
openings = tool.Model.load_openings(
element,
[
r.RelatedOpeningElement
for r in element.HasOpenings
+1 -1
View File
@@ -535,7 +535,7 @@ class Model:
def import_profile(cls, profile, obj=None, position=None): pass
def import_curve(cls, obj, position, curve): pass
def import_rectangle(cls, obj, position, profile): pass
def load_openings(cls, element, openings): pass
def load_openings(cls, openings): pass
def clear_scene_openings(cls): pass
def get_material_layer_parameters(cls, element): pass
def get_manual_booleans(cls, element): pass
+1 -2
View File
@@ -445,10 +445,9 @@ class Model(blenderbim.core.tool.Model):
cls.edges[-1] = (len(cls.vertices) - 1, 0) # Close the loop
@classmethod
def load_openings(cls, element, openings):
def load_openings(cls, openings):
if not openings:
return []
obj = tool.Ifc.get_object(element)
ifc_import_settings = import_ifc.IfcImportSettings.factory()
ifc_importer = import_ifc.IfcImporter(ifc_import_settings)
ifc_importer.file = tool.Ifc.get()