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_particle.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_particle.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 7d0f6de7b1b..c85b8004808 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -21,7 +21,7 @@ import bpy from bpy.types import Panel, Menu from rna_prop_ui import PropertyPanel from bpy.app.translations import pgettext_iface as iface_ -from bl_operators.presets import PresetMenu +from bl_ui.utils import PresetPanel from .properties_physics_common import ( point_cache_ui, @@ -95,7 +95,7 @@ class PARTICLE_MT_context_menu(Menu): ) -class PARTICLE_PT_hair_dynamics_presets(PresetMenu): +class PARTICLE_PT_hair_dynamics_presets(PresetPanel, Panel): bl_label = "Hair Dynamics Presets" preset_subdir = "hair_dynamics" preset_operator = "script.execute_preset" |