Fix T64649: Deprecated Annotation editing causes a crash

The Edit option was removed from annotations and the buttons must not be in the panel.
This commit is contained in:
Antonio Vazquez 2019-05-15 20:26:26 +02:00
parent fe8f0758c6
commit 9baf669493
Notes: blender-bot 2023-02-14 05:12:59 +01:00
Referenced by issue #64649, Deprecated GPencil Stroke editing causes a crash
1 changed files with 0 additions and 21 deletions

View File

@ -130,15 +130,6 @@ class AnnotationDrawingToolsPanel:
gpencil_stroke_placement_settings(context, col)
gpd = context.gpencil_data
if gpd and not is_3d_view:
layout.separator()
layout.separator()
col = layout.column(align=True)
col.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", toggle=True) # was: icon='EDIT'
class GreasePencilStrokeEditPanel:
# subclass must set
@ -802,18 +793,6 @@ class GreasePencilToolsPanel:
gpd = context.gpencil_data
layout.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)
layout.separator()
layout.label(text="Proportional Edit:")
row = layout.row()
row.prop(context.tool_settings, "use_proportional_edit", text="")
row.prop(context.tool_settings, "proportional_edit_falloff", text="")
layout.separator()
layout.separator()
gpencil_active_brush_settings_simple(context, layout)
layout.separator()