Improve UI to change spatial container to prevent accidentally selecting incorrect objects

This commit is contained in:
Dion Moult
2021-02-21 11:24:27 +11:00
parent 0178804feb
commit 0286cd370d
8 changed files with 177 additions and 42 deletions
@@ -182,6 +182,7 @@ class UnassignClass(bpy.types.Operator):
self.remove_representations(obj, product)
IfcStore.unlink_element(product, obj)
remove_product.Usecase(self.file, {"product": product}).execute()
# TODO: remove object placement
if "/" in obj.name and obj.name[0:3] == "Ifc":
obj.name = "/".join(obj.name.split("/")[1:])
if obj.data and obj.data.name == "Void":