Brushstroke Tools: Initial Version #328
@ -64,7 +64,11 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
|
||||
|
||||
utils.ensure_resources()
|
||||
|
||||
surface_object = context.object if context.object in context.selected_objects else None
|
||||
context_object = context.object
|
||||
surf_ob = utils.get_surface_object(context_object)
|
||||
if surf_ob:
|
||||
context_object = surf_ob
|
||||
surface_object = context_object if context.object in context.selected_objects else None
|
||||
flow_object = None
|
||||
|
||||
name = 'Brushstrokes'
|
||||
@ -139,8 +143,8 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
|
||||
for mod in brushstrokes_object.modifiers:
|
||||
mod.show_group_selector = False
|
||||
|
||||
# enter mode and tool context
|
||||
|
||||
'''# enter mode and tool context
|
||||
|
||||
if settings.curve_mode == 'GP':
|
||||
bpy.ops.object.mode_set(mode='PAINT_GREASE_PENCIL')
|
||||
bpy.ops.wm.tool_set_by_id(name="builtin.draw")
|
||||
@ -148,7 +152,7 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
|
||||
else:
|
||||
bpy.ops.object.mode_set(mode='EDIT')
|
||||
bpy.ops.wm.tool_set_by_id(name="brushstroke_tools.draw")
|
||||
|
||||
'''
|
||||
return {"FINISHED"}
|
||||
|
||||
class BSBST_OT_init_preset(bpy.types.Operator):
|
||||
|
Loading…
Reference in New Issue
Block a user