Add curve mode setting for different types of data #3

Merged
Simon Thommes merged 6 commits from add-curve-modes into master 2024-03-15 17:26:52 +01:00
Showing only changes of commit 2fbcc52a55 - Show all commits

View File

@ -48,8 +48,8 @@ class SCRIB_OT_draw(bpy.types.Operator):
def invoke(self, context, event): def invoke(self, context, event):
utils.ensure_resources() utils.ensure_resources()
if True: if True:
SCRIB_OT_draw_curves.gp = None SCRIB_OT_draw.gp = None
SCRIB_OT_draw_curves.ng_process = bpy.data.node_groups['.scribble-buddy.processing'] SCRIB_OT_draw.ng_process = bpy.data.node_groups['.scribble-buddy.processing']
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