Fix: Tests: initial updated regression test is not correct

When creating a new mesh test (e.g. a geometry nodes test), the code would just
copy the object without applying modifiers. This results in the test failing
initially.

I noticed this due to another issue in `verify_attributes_compatible` which
allows meshes to compare equal when they have a different set of attributes
right now. This results in my test file not being properly created at all,
because the test succeeded even without applying the modifier.

Pull Request: https://projects.blender.org/blender/blender/pulls/154463
This commit is contained in:
Jacques Lucke 2026-02-16 22:04:01 +01:00
parent 2b3068cadd
commit 8a925a51b1

View file

@ -240,6 +240,7 @@ class MeshTest(ABC):
self.expected_object.name = self.exp_object_name
x, y, z = self.test_object.location
self.expected_object.location = (x, y + 10, z)
self.apply_operations(self.expected_object.name)
def create_evaluated_object(self):
"""