Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-13 04:41:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-13 05:32:10 +0300
commit100854c17c057823aa9e8720369a2940be9138f4 (patch)
tree34b6f69b98339c4e114e158157a15128a44d9474 /intern
parent88fe48b56a2e36907fa4100fbbd77324cc0218c7 (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 'intern')
-rw-r--r--intern/cycles/blender/addon/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 93b16727b9a..aea0a075b64 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -18,12 +18,12 @@
import bpy
from bpy_extras.node_utils import find_node_input
-from bl_operators.presets import PresetMenu
+from bl_ui.utils import PresetPanel
from bpy.types import Panel
-class CYCLES_PT_sampling_presets(PresetMenu):
+class CYCLES_PT_sampling_presets(PresetPanel, Panel):
bl_label = "Sampling Presets"
preset_subdir = "cycles/sampling"
preset_operator = "script.execute_preset"
@@ -31,7 +31,7 @@ class CYCLES_PT_sampling_presets(PresetMenu):
COMPAT_ENGINES = {'CYCLES'}
-class CYCLES_PT_integrator_presets(PresetMenu):
+class CYCLES_PT_integrator_presets(PresetPanel, Panel):
bl_label = "Integrator Presets"
preset_subdir = "cycles/integrator"
preset_operator = "script.execute_preset"