mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Minor signature clean up to tool.Model.load_openings (unused arg)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user