Brushstroke Tools: Initial Version #328
@ -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,7 +239,6 @@ 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"}
|
||||||
|
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user