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
This commit is contained in:
Sean Kim
2025-01-09 19:27:20 +01:00
committed by Sean Kim
parent 7c775c6f57
commit e2d6517109

View File

@@ -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))