diff options
author | William Reynish <william@reynish.com> | 2009-08-25 16:31:35 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-08-25 16:31:35 +0400 |
commit | 8aa6f672bab266986c7d775cfb01c48d834d3ad9 (patch) | |
tree | 1ea2064e8b6a3b320dc6951b57223bc2b6019ece /release | |
parent | 4c8d32b4bf624bd70a4c2b20a9c971ae92e8f8a3 (diff) |
Moved the autokey mode menu from the timeline header into the timeline menus. Its previous prominent large size made it seem like this setting was very important, when in fact it's a setting you are almost never likely to touch. This helps clean up the main UI.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_physics_cloth.py | 2 | ||||
-rw-r--r-- | release/ui/buttons_physics_softbody.py | 2 | ||||
-rw-r--r-- | release/ui/space_time.py | 41 |
3 files changed, 36 insertions, 9 deletions
diff --git a/release/ui/buttons_physics_cloth.py b/release/ui/buttons_physics_cloth.py index 6c499625685..9ddf03e3d4d 100644 --- a/release/ui/buttons_physics_cloth.py +++ b/release/ui/buttons_physics_cloth.py @@ -91,7 +91,7 @@ class PHYSICS_PT_cloth_cache(PhysicButtonsPanel): layout.set_context_pointer("PointCache", cache) row = layout.row() - row.template_list(cache, "point_cache_list", cache, "active_point_cache_index") + row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2) col = row.column(align=True) col.itemO("ptcache.add_new", icon='ICON_ZOOMIN', text="") col.itemO("ptcache.remove", icon='ICON_ZOOMOUT', text="") diff --git a/release/ui/buttons_physics_softbody.py b/release/ui/buttons_physics_softbody.py index 35c0c498436..2beba8c95a0 100644 --- a/release/ui/buttons_physics_softbody.py +++ b/release/ui/buttons_physics_softbody.py @@ -66,7 +66,7 @@ class PHYSICS_PT_softbody_cache(PhysicButtonsPanel): layout.set_context_pointer("PointCache", cache) row = layout.row() - row.template_list(cache, "point_cache_list", cache, "active_point_cache_index") + row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2) col = row.column(align=True) col.itemO("ptcache.add_new", icon='ICON_ZOOMIN', text="") col.itemO("ptcache.remove", icon='ICON_ZOOMOUT', text="") diff --git a/release/ui/space_time.py b/release/ui/space_time.py index 6e4b5beb161..81681e42d92 100644 --- a/release/ui/space_time.py +++ b/release/ui/space_time.py @@ -33,6 +33,8 @@ class TIME_HT_header(bpy.types.Header): row.itemR(scene, "preview_range_end_frame", text="End") layout.itemR(scene, "current_frame", text="") + + layout.itemS() row = layout.row(align=True) row.item_booleanO("screen.frame_jump", "end", False, text="", icon='ICON_REW') @@ -47,18 +49,13 @@ class TIME_HT_header(bpy.types.Header): row.item_booleanO("screen.keyframe_jump", "next", True, text="", icon='ICON_NEXT_KEYFRAME') row.item_booleanO("screen.frame_jump", "end", True, text="", icon='ICON_FF') - layout.itemR(rd, "sync_audio", text="", toggle=True, icon='ICON_SPEAKER') - - layout.itemS() - row = layout.row(align=True) row.itemR(tools, "enable_auto_key", text="", toggle=True, icon='ICON_REC') - sub = row.row() - sub.active = tools.enable_auto_key - sub.itemR(tools, "autokey_mode", text="") if screen.animation_playing and tools.enable_auto_key: subsub = row.row() subsub.itemR(tools, "record_with_nla", toggle=True) + + layout.itemR(rd, "sync_audio", text="", toggle=True, icon='ICON_SPEAKER') layout.itemS() @@ -88,6 +85,7 @@ class TIME_MT_frame(bpy.types.Menu): def draw(self, context): layout = self.layout + tools = context.tool_settings layout.itemO("marker.add", text="Add Marker") layout.itemO("marker.duplicate", text="Duplicate Marker") @@ -99,6 +97,12 @@ class TIME_MT_frame(bpy.types.Menu): layout.itemO("time.start_frame_set") layout.itemO("time.end_frame_set") + + layout.itemS() + + sub = layout.row() + sub.active = tools.enable_auto_key + sub.itemM("TIME_MT_autokey") class TIME_MT_playback(bpy.types.Menu): __space_type__ = 'TIMELINE' @@ -108,6 +112,7 @@ class TIME_MT_playback(bpy.types.Menu): layout = self.layout st = context.space_data + rd = context.scene.render_data layout.itemR(st, "play_top_left") layout.itemR(st, "play_all_3d") @@ -115,10 +120,32 @@ class TIME_MT_playback(bpy.types.Menu): layout.itemR(st, "play_buttons") layout.itemR(st, "play_image") layout.itemR(st, "play_sequencer") + layout.itemS() + layout.itemR(st, "continue_physics") + + layout.itemS() + + layout.itemR(rd, "sync_audio", icon='ICON_SPEAKER') + + + +class TIME_MT_autokey(bpy.types.Menu): + __space_type__ = 'TIMELINE' + __label__ = "Auto-Keyframing Mode" + + def draw(self, context): + layout = self.layout + tools = context.tool_settings + + layout.active = tools.enable_auto_key + + layout.item_enumR(tools, "autokey_mode", "ADD_REPLACE_KEYS") + layout.item_enumR(tools, "autokey_mode", "REPLACE_KEYS") bpy.types.register(TIME_HT_header) bpy.types.register(TIME_MT_view) bpy.types.register(TIME_MT_frame) +bpy.types.register(TIME_MT_autokey) bpy.types.register(TIME_MT_playback) |