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
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-04-07 19:18:12 +0400
committerThomas Dinges <blender@dingto.org>2013-04-07 19:18:12 +0400
commit279a2796bac75c5ee3317e9b1500bea604c1f4d1 (patch)
treebc4be75c28c006f55643648c95b51c5bc2fa46cb /release
parent858ff6b69626bf8385debe06436b2f2abba56f45 (diff)
Fix for [#34901] "Add SSS Preset" gives error.
* Mark Preset operator as 'Internal' only, so it does not show up inside the search menu. We cannot be sure if we meet the context requirements otherwise (unless we add a poll to each subclass).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/presets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index dac7adecaff..ed0943ac2e0 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -30,7 +30,7 @@ class AddPresetBase():
- preset_subdir """
# bl_idname = "script.preset_base_add"
# bl_label = "Add a Python Preset"
- bl_options = {'REGISTER'} # only because invoke_props_popup requires.
+ bl_options = {'REGISTER', 'INTERNAL'} # only because invoke_props_popup requires. Also do not add to search menu.
name = StringProperty(
name="Name",