GPencil: Cleanup typo error for hardness

The variable cannot be names because it was already renamed.
This commit is contained in:
Antonio Vazquez
2020-04-02 16:27:14 +02:00
parent 7c88968c89
commit e6c732e0cb
5 changed files with 6 additions and 6 deletions

View File

@@ -2045,8 +2045,8 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
col = split.column()
col.prop(md, "modify_color")
if md.modify_color == 'HARDENESS':
col.prop(md, "hardeness")
if md.modify_color == 'HARDNESS':
col.prop(md, "hardness")
show = False
else:
col.prop(md, "normalize_opacity")

View File

@@ -1492,7 +1492,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
ma = brush.gpencil_settings.material
col.separator()
col.prop(gp_settings, "hardeness", slider=True)
col.prop(gp_settings, "hardness", slider=True)
subcol = col.column(align=True)
if ma and ma.grease_pencil.mode == 'LINE':
subcol.enabled = False