Fix: Sculpt performance test doesn't run

Incomplete fix in ed91a298c0

`StrEnum` is also a concept that doesn't exist in python 3.9

Pull Request: https://projects.blender.org/blender/blender/pulls/137624
This commit is contained in:
Sean Kim
2025-04-16 23:08:45 +02:00
committed by Sean Kim
parent 2e1a12905d
commit 8b7b9380a7

View File

@@ -13,7 +13,7 @@ class SculptMode(enum.IntEnum):
DYNTOPO = 3
class BrushType(enum.StrEnum):
class BrushType(enum.Enum):
DRAW = "Draw"
CLAY_STRIPS = "Clay Strips"
SMOOTH = "Smooth"
@@ -99,7 +99,7 @@ def prepare_sculpt_scene(context: any, mode: SculptMode, brush_type: BrushType):
bpy.ops.brush.asset_activate(
asset_library_type='ESSENTIALS',
relative_asset_identifier='brushes/essentials_brushes-mesh_sculpt.blend/Brush/' +
brush_type)
brush_type.value)
# Reduce the brush strength to avoid deforming the mesh too much and influencing multiple strokes
context.tool_settings.sculpt.brush.strength = 0.1