Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit 23916ea5cf - Show all commits

View File

@ -58,7 +58,8 @@ class BSBST_OT_pre_process_brushstroke(bpy.types.Operator):
context.tool_settings.curve_paint_settings.curve_type = 'POLY'
context.tool_settings.curve_paint_settings.depth_mode = 'SURFACE'
context.tool_settings.curve_paint_settings.use_pressure_radius = True
context.tool_settings.curve_paint_settings.use_project_only_selected = True
is_other_object_selected = len(set(context.selected_objects) - {context.object}) > 0
context.tool_settings.curve_paint_settings.use_project_only_selected = is_other_object_selected
context.tool_settings.curve_paint_settings.radius_max = tool_settings.radius_max
context.tool_settings.curve_paint_settings.surface_offset = tool_settings.surface_offset