Cleanup: typo, tweak proportional edit check

This commit is contained in:
Campbell Barton 2019-05-07 10:01:25 +10:00
parent ddb71e8c20
commit 619b9e9d81
2 changed files with 6 additions and 5 deletions

View File

@ -1001,7 +1001,7 @@ class WM_OT_doc_view_manual(Operator):
class WM_OT_doc_view(Operator):
"""Open online reference docs in.a web browser"""
"""Open online reference docs in a web browser"""
bl_idname = "wm.doc_view"
bl_label = "View Documentation"

View File

@ -474,14 +474,15 @@ class VIEW3D_HT_header(Header):
else:
attr = "use_proportional_edit"
if tool_settings.use_proportional_edit == False:
kw["icon"] = 'PROP_OFF'
else:
kw["icon"] = 'PROP_ON'
if tool_settings.use_proportional_edit:
if tool_settings.use_proportional_connected:
kw["icon"] = 'PROP_CON'
elif tool_settings.use_proportional_projected:
kw["icon"] = 'PROP_PROJECTED'
else:
kw["icon"] = 'PROP_ON'
else:
kw["icon"] = 'PROP_OFF'
row.prop(tool_settings, attr, icon_only=True, **kw)
sub = row.row(align=True)