Fix some feature tests

This commit is contained in:
Andrej730
2025-02-24 16:48:32 +05:00
parent 5eb9cb2ee4
commit ce6339869d
2 changed files with 2 additions and 1 deletions
@@ -21,6 +21,7 @@ import bpy
import ifcopenshell
import ifcopenshell.util.attribute
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.prop import StrProperty, Attribute
from bonsai.bim.ifc import IfcStore
+1 -1
View File
@@ -431,7 +431,7 @@ class Root(bonsai.core.tool.Root):
"""
tool.Ifc.unlink(obj=obj)
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:
if material := material_slot.material:
tool.Ifc.unlink(obj=material)