diff options
author | Thomas Dinges <blender@dingto.org> | 2011-04-25 17:47:15 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-04-25 17:47:15 +0400 |
commit | d6e03d2c56840f9f671ea66654f934cde7bab635 (patch) | |
tree | b4bdfa37a47738b6ceafd27e92acb2ec24ca3018 /release | |
parent | 70d059161b81993a154d8e7c65ed940739791687 (diff) |
2.5 Interface:
* Implemented a new operator "WM_OT_properties_context_change" to switch to a different tab inside the properties window.
* This is used now inside the Modifier tab for Simulation Modifiers. Based on a mockup by Janne Karhu:
http://www.pasteall.org/pic/11261
http://www.pasteall.org/pic/11262
Rather than having a delete button there anymore, the button changes the context to Physics/Particles, where you can edit the settings and delete the actual simulation.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index adcd9c7c45a..6161aa4aa19 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -837,6 +837,18 @@ class WM_OT_properties_add(bpy.types.Operator): item[property] = 1.0 return {'FINISHED'} +class WM_OT_properties_context_change(bpy.types.Operator): + "Change the context tab in a Properties Window" + bl_idname = "wm.properties_context_change" + bl_label = "" + + context = StringProperty(name="Context", maxlen=32) + + def execute(self, context): + context.space_data.context = (self.context) + + return {'FINISHED'} + class WM_OT_properties_remove(bpy.types.Operator): '''Internal use (edit a property data_path)''' |