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/properties_material_gpencil.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/properties_material_gpencil.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material_gpencil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py index e33628658fc..24ba786f7af 100644 --- a/release/scripts/startup/bl_ui/properties_material_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Menu, Panel, UIList from rna_prop_ui import PropertyPanel -from bl_operators.presets import PresetMenu +from bl_ui.utils import PresetPanel from .properties_grease_pencil_common import ( GreasePencilMaterialsPanel, @@ -250,7 +250,7 @@ class MATERIAL_PT_gpencil_options(GPMaterialButtonsPanel, Panel): layout.prop(gpcolor, "pass_index") -class MATERIAL_PT_gpencil_material_presets(PresetMenu): +class MATERIAL_PT_gpencil_material_presets(PresetPanel, Panel): """Material settings""" bl_label = "Material Presets" preset_subdir = "gpencil_material" |