Cleanup: typo, tweak proportional edit check
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 00:01:25 +0000 (10:01 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 00:06:00 +0000 (10:06 +1000)
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/space_view3d.py

index 1d6aac3..5e63342 100644 (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"
 
index e08c4e5..da18d60 100644 (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)