Geometry caching is now enabled for model importing

This commit is contained in:
Dion Moult
2021-11-10 13:52:14 +11:00
parent c1c50f8868
commit 0992f43f11
10 changed files with 51 additions and 13 deletions
@@ -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"))