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
+1 -2
View File
@@ -25,7 +25,6 @@ import blenderbim.tool as tool
from mathutils import Vector
from test.bim.bootstrap import NewFile
from blenderbim.tool.geometry import Geometry as subject
from blenderbim.bim.ifc import IfcStore
class TestImplementsTool(NewFile):
@@ -308,7 +307,7 @@ class TestIsEdited(NewFile):
assert subject.is_edited(obj) is True
obj.scale[0] = 1
assert subject.is_edited(obj) is False
IfcStore.edited_objs.add(obj)
tool.Ifc.edit(obj)
assert subject.is_edited(obj) is True