From e2d651710962bbf6b6ded99adb8bc5fc7ec93995 Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Thu, 9 Jan 2025 19:27:20 +0100 Subject: [PATCH] Sculpt: Allow running performance test in 4.3 releases Unfortunately, the tests as they are right now will likely not work with 4.2 and previous versions, as the brush asset changes will need to be accounted for. Pull Request: https://projects.blender.org/blender/blender/pulls/132827 --- tests/performance/tests/sculpt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/performance/tests/sculpt.py b/tests/performance/tests/sculpt.py index 8ffc63a8a1a..9a135eb4473 100644 --- a/tests/performance/tests/sculpt.py +++ b/tests/performance/tests/sculpt.py @@ -90,6 +90,7 @@ def generate_stroke(context): The generated stroke coves the full plane diagonal. """ + import bpy from mathutils import Vector template = { @@ -105,6 +106,10 @@ def generate_stroke(context): "y_tilt": 0 } + version = bpy.app.version + if version[0] <= 4 and version[1] <= 3: + template["pen_flip"] = False + num_steps = 100 start = Vector((-1, -1, 0)) end = Vector((1, 1, 0))