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
2 changed files with 4 additions and 4 deletions
Showing only changes of commit ca4b007120 - Show all commits

View File

@ -92,6 +92,7 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
def execute(self, context): def execute(self, context):
settings = context.scene.BSBST_settings settings = context.scene.BSBST_settings
edit_toggle = settings.edit_toggle
utils.ensure_resources() utils.ensure_resources()
bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.mode_set(mode='OBJECT')
@ -238,8 +239,7 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
settings.active_context_brushstrokes_index = i settings.active_context_brushstrokes_index = i
break break
if settings.edit_toggle: utils.edit_active_brushstrokes(context)
utils.edit_active_brushstrokes(context)
return {"FINISHED"} return {"FINISHED"}
class BSBST_OT_edit_brushstrokes(bpy.types.Operator): class BSBST_OT_edit_brushstrokes(bpy.types.Operator):

View File

@ -230,8 +230,8 @@ class BSBST_Settings(bpy.types.PropertyGroup):
name='Deforming Surface', name='Deforming Surface',
description='Create brushstrokes layer for a deforming surface') description='Create brushstrokes layer for a deforming surface')
edit_toggle: bpy.props.BoolProperty(default=False, edit_toggle: bpy.props.BoolProperty(default=False,
name='Edit Active Brushstrokes', name='Edit on Selection',
description="Jump into the corresponding edit mode when selecting/creating a brushstrokes layer") description="Jump into the corresponding edit mode when selecting a brushstrokes layer")
estimate_dimensions: bpy.props.BoolProperty(default=True, estimate_dimensions: bpy.props.BoolProperty(default=True,
name='Estimate Dimensions', name='Estimate Dimensions',
description="Estimate the length, width and distribution density of the brush strokes based on the bounding box to provide a reasonable starting point regardless of scale") description="Estimate the length, width and distribution density of the brush strokes based on the bounding box to provide a reasonable starting point regardless of scale")