mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 13:16:25 +00:00
Fix bug where existing meshes were not deleted when switching representations.
This commit is contained in:
@@ -52,6 +52,11 @@ class Geometry(blenderbim.core.tool.Geometry):
|
||||
modifier.solver = "EXACT"
|
||||
modifier.use_self = True
|
||||
|
||||
|
||||
@classmethod
|
||||
def delete_data(cls, data):
|
||||
bpy.data.meshes.remove(data)
|
||||
|
||||
@classmethod
|
||||
def does_object_have_mesh_with_faces(cls, obj):
|
||||
return bool(isinstance(obj.data, bpy.types.Mesh) and len(obj.data.polygons))
|
||||
|
||||
Reference in New Issue
Block a user