mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fix some feature tests
This commit is contained in:
@@ -21,6 +21,7 @@ import bpy
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.attribute
|
import ifcopenshell.util.attribute
|
||||||
from ifcopenshell.util.doc import get_attribute_doc
|
from ifcopenshell.util.doc import get_attribute_doc
|
||||||
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.pset_template.data import PsetTemplatesData
|
from bonsai.bim.module.pset_template.data import PsetTemplatesData
|
||||||
from bonsai.bim.prop import StrProperty, Attribute
|
from bonsai.bim.prop import StrProperty, Attribute
|
||||||
from bonsai.bim.ifc import IfcStore
|
from bonsai.bim.ifc import IfcStore
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ class Root(bonsai.core.tool.Root):
|
|||||||
"""
|
"""
|
||||||
tool.Ifc.unlink(obj=obj)
|
tool.Ifc.unlink(obj=obj)
|
||||||
if tool.Geometry.has_mesh_properties((data := obj.data)):
|
if tool.Geometry.has_mesh_properties((data := obj.data)):
|
||||||
tool.Geometry.get_mesh_props(mesh).ifc_definition_id = 0
|
tool.Geometry.get_mesh_props(data).ifc_definition_id = 0
|
||||||
for material_slot in obj.material_slots:
|
for material_slot in obj.material_slots:
|
||||||
if material := material_slot.material:
|
if material := material_slot.material:
|
||||||
tool.Ifc.unlink(obj=material)
|
tool.Ifc.unlink(obj=material)
|
||||||
|
|||||||
Reference in New Issue
Block a user