correct operator preset tooltip and dont save their settings for re-use

This commit is contained in:
Campbell Barton
2012-11-02 12:09:59 +00:00
parent ad191960a7
commit f8112b40a6

View File

@@ -185,10 +185,12 @@ class ExecutePreset(Operator):
filepath = StringProperty( filepath = StringProperty(
subtype='FILE_PATH', subtype='FILE_PATH',
options={'SKIP_SAVE'},
) )
menu_idname = StringProperty( menu_idname = StringProperty(
name="Menu ID Name", name="Menu ID Name",
description="ID name of the menu this was called from", description="ID name of the menu this was called from",
options={'SKIP_SAVE'},
) )
def execute(self, context): def execute(self, context):
@@ -504,7 +506,7 @@ class AddPresetKeyconfig(AddPresetBase, Operator):
class AddPresetOperator(AddPresetBase, Operator): class AddPresetOperator(AddPresetBase, Operator):
"""Add an Application Interaction Preset""" """Add an Operator Preset"""
bl_idname = "wm.operator_preset_add" bl_idname = "wm.operator_preset_add"
bl_label = "Operator Preset" bl_label = "Operator Preset"
preset_menu = "WM_MT_operator_presets" preset_menu = "WM_MT_operator_presets"
@@ -512,7 +514,7 @@ class AddPresetOperator(AddPresetBase, Operator):
operator = StringProperty( operator = StringProperty(
name="Operator", name="Operator",
maxlen=64, maxlen=64,
options={'HIDDEN'}, options={'HIDDEN', 'SKIP_SAVE'},
) )
preset_defines = [ preset_defines = [