mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
Fix #2998
This commit is contained in:
@@ -333,6 +333,8 @@ class Geometry(blenderbim.core.tool.Geometry):
|
|||||||
"Curve",
|
"Curve",
|
||||||
"Curve2D",
|
"Curve2D",
|
||||||
"Curve3D",
|
"Curve3D",
|
||||||
|
"Edge",
|
||||||
|
"Face",
|
||||||
"FillArea",
|
"FillArea",
|
||||||
"GeometricCurveSet",
|
"GeometricCurveSet",
|
||||||
"GeometricSet",
|
"GeometricSet",
|
||||||
|
|||||||
@@ -378,6 +378,8 @@ class Model(blenderbim.core.tool.Model):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_usage_type(cls, element):
|
def get_usage_type(cls, element):
|
||||||
|
if element.is_a("IfcStructuralItem"):
|
||||||
|
return
|
||||||
material = ifcopenshell.util.element.get_material(element, should_inherit=False)
|
material = ifcopenshell.util.element.get_material(element, should_inherit=False)
|
||||||
if material:
|
if material:
|
||||||
if material.is_a("IfcMaterialLayerSetUsage"):
|
if material.is_a("IfcMaterialLayerSetUsage"):
|
||||||
|
|||||||
Reference in New Issue
Block a user