diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-17 23:05:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-17 23:05:53 +0400 |
commit | 4cf697de8913e91e9091a12afbd37f5ebd4c9940 (patch) | |
tree | 3ab3ea56d24c12abfcb9dd027b8a917f2bff639b /release/scripts/op/presets.py | |
parent | 392e1da1790d252f0f156379c1d5507959a4e17a (diff) |
- for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections
Diffstat (limited to 'release/scripts/op/presets.py')
-rw-r--r-- | release/scripts/op/presets.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/op/presets.py b/release/scripts/op/presets.py index 440b5a547f7..c47b58c76a1 100644 --- a/release/scripts/op/presets.py +++ b/release/scripts/op/presets.py @@ -87,7 +87,7 @@ class ExecutePreset(bpy.types.Operator): # change the menu title to the most recently chosen option preset_class = getattr(bpy.types, self.properties.menu_idname) preset_class.bl_label = self.properties.preset_name - + # execute the preset using script.python_file_run bpy.ops.script.python_file_run(path=self.properties.path) return {'FINISHED'} @@ -182,13 +182,14 @@ class AddPresetSunSky(AddPresetBase): preset_subdir = "sunsky" + class AddPresetInteraction(AddPresetBase): '''Add an Application Interaction Preset''' bl_idname = "wm.interaction_preset_add" bl_label = "Add Interaction Preset" name = AddPresetBase.name save_keyconfig = True - + preset_values = [ "bpy.context.user_preferences.edit.drag_immediately", "bpy.context.user_preferences.edit.insertkey_xyz_to_rgb", |