mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:23:40 +00:00
Geometry caching is now enabled for model importing
This commit is contained in:
@@ -24,6 +24,7 @@ from test.core.bootstrap import ifc, surveyor, geometry, style
|
||||
class TestEditObjectPlacement:
|
||||
def predict(self, ifc, geometry, surveyor):
|
||||
ifc.get_entity("obj").should_be_called().will_return("element")
|
||||
geometry.clear_cache("element").should_be_called()
|
||||
geometry.clear_scale("obj").should_be_called()
|
||||
surveyor.get_absolute_matrix("obj").should_be_called().will_return("matrix")
|
||||
ifc.run("geometry.edit_object_placement", product="element", matrix="matrix").should_be_called()
|
||||
|
||||
@@ -53,6 +53,11 @@ class TestChangeObjectData(NewFile):
|
||||
assert obj2.data == data2
|
||||
|
||||
|
||||
class TestClearCache(NewFile):
|
||||
def test_nothing(self):
|
||||
pass # TODO I don't know how to test this
|
||||
|
||||
|
||||
class TestClearModifiers(NewFile):
|
||||
def test_run(self):
|
||||
obj = bpy.data.objects.new("Object", bpy.data.meshes.new("Mesh"))
|
||||
|
||||
Reference in New Issue
Block a user