small refactor for Ifc.edit and tool.Ifc

1) replaced IfcStore.edited_objs.add with tool.Ifc.edit
2) updated interface in tool.py
3) removed unlink from tool.Ifc - it was declared there twice
This commit is contained in:
Andrej730
2023-03-17 17:48:42 +05:00
parent a83c4b2896
commit 31f6baaf67
7 changed files with 13 additions and 22 deletions
@@ -19,7 +19,6 @@
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
import bpy
import bmesh
@@ -113,7 +112,7 @@ def update_geonodes_modifier():
bm.to_mesh(obj.data)
bm.free()
obj.data.update()
IfcStore.edited_objs.add(obj)
tool.Ifc.edit(obj)
if __name__ == "__main__":