From 279a2796bac75c5ee3317e9b1500bea604c1f4d1 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sun, 7 Apr 2013 15:18:12 +0000 Subject: 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). --- release/scripts/startup/bl_operators/presets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.3