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 974a4bd6c5 - Show all commits

View File

@ -65,6 +65,8 @@ class BSBST_OT_draw(bpy.types.Operator):
context.tool_settings.curve_paint_settings.curve_type = 'POLY' # TODO: restore later context.tool_settings.curve_paint_settings.curve_type = 'POLY' # TODO: restore later
context.tool_settings.curve_paint_settings.depth_mode = 'SURFACE' # TODO: restore later context.tool_settings.curve_paint_settings.depth_mode = 'SURFACE' # TODO: restore later
context.tool_settings.curve_paint_settings.use_pressure_radius = True # TODO: restore later context.tool_settings.curve_paint_settings.use_pressure_radius = True # TODO: restore later
context.tool_settings.curve_paint_settings.use_project_only_selected = True # TODO: restore later
context.tool_settings.curve_paint_settings.is_curve_2d = False # TODO: restore later
context.window_manager.modal_handler_add(self) context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'} return {'RUNNING_MODAL'}
@ -92,6 +94,7 @@ class BrushstrokesCurves(WorkSpaceTool):
def draw_settings(context, layout, tool): def draw_settings(context, layout, tool):
props = tool.operator_properties("brushstroke_tools.draw") props = tool.operator_properties("brushstroke_tools.draw")
layout.prop(context.tool_settings.curve_paint_settings , "radius_max") layout.prop(context.tool_settings.curve_paint_settings , "radius_max")
layout.prop(context.tool_settings.curve_paint_settings , "surface_offset")
layout.prop(props, "brush_color") layout.prop(props, "brush_color")
classes = [ classes = [