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_physics_cloth.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_physics_cloth.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_cloth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py index 71731644caf..4c8e056aa03 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -22,7 +22,7 @@ import bpy from bpy.types import ( Panel, ) -from bl_operators.presets import PresetMenu +from bl_ui.utils import PresetPanel from .properties_physics_common import ( point_cache_ui, @@ -34,7 +34,7 @@ def cloth_panel_enabled(md): return md.point_cache.is_baked is False -class CLOTH_PT_presets(PresetMenu): +class CLOTH_PT_presets(PresetPanel, Panel): bl_label = "Cloth Presets" preset_subdir = "cloth" preset_operator = "script.execute_preset" |