diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-09 08:26:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-09 08:26:46 +0300 |
commit | 092bea06da38fb292540f75de12cb28780b5d919 (patch) | |
tree | 0ece8f8222327a5d559e69e737b9548ffe97bb48 /release/scripts/startup/bl_ui | |
parent | 3e8b1550dc429b35aef8ad599ac94f913ab0d436 (diff) |
Cleanup: access context argument instead of bpy.context
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index d729180843e..4f4bb3cf2cd 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -1201,10 +1201,10 @@ class _defs_sculpt: @staticmethod def generate_from_brushes(context): exclude_filter = {} - if not bpy.context.preferences.experimental.use_sculpt_vertex_colors: + if not context.preferences.experimental.use_sculpt_vertex_colors: exclude_filter = {'PAINT', 'SMEAR'} - if not bpy.context.preferences.experimental.use_tools_missing_icons: + if not context.preferences.experimental.use_tools_missing_icons: exclude_filter = {'PAINT', 'SMEAR', 'BOUNDARY', 'DISPLACEMENT_ERASER'} return generate_from_enum_ex( |