Brushstroke Tools: Initial Version #328
@ -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.curve_type = 'POLY'
|
||||||
context.tool_settings.curve_paint_settings.depth_mode = 'SURFACE'
|
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_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.radius_max = tool_settings.radius_max
|
||||||
context.tool_settings.curve_paint_settings.surface_offset = tool_settings.surface_offset
|
context.tool_settings.curve_paint_settings.surface_offset = tool_settings.surface_offset
|
||||||
|
Loading…
Reference in New Issue
Block a user