diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 04:41:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 05:32:10 +0300 |
commit | 100854c17c057823aa9e8720369a2940be9138f4 (patch) | |
tree | 34b6f69b98339c4e114e158157a15128a44d9474 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | 88fe48b56a2e36907fa4100fbbd77324cc0218c7 (diff) |
UI: rename PresetMenu to PresetPanel, move to bl_ui.utils
Confusing to call a menu a panel when subclasses need to define
panel specific variables.
Avoid having bl_ui depend on bl_operator module too.
Since this isn't an operator, add utils modules for shared types.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index ae58237f267..22571080628 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -31,7 +31,7 @@ from .properties_paint_common import ( brush_texpaint_common, brush_texture_settings, ) -from bl_operators.presets import PresetMenu +from bl_ui.utils import PresetPanel class View3DPanel: @@ -1816,7 +1816,7 @@ class VIEW3D_PT_tools_grease_pencil_weight_appearance(GreasePencilAppearancePane bl_label = "Appearance" -class VIEW3D_PT_gpencil_brush_presets(PresetMenu): +class VIEW3D_PT_gpencil_brush_presets(PresetPanel, Panel): """Brush settings""" bl_label = "Brush Presets" preset_subdir = "gpencil_brush" |