Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-05-06 10:57:02 +0400
committerJoshua Leung <aligorith@gmail.com>2012-05-06 10:57:02 +0400
commitd2d272711dd795d502ff773de890d8bf3f715cfa (patch)
tree06267e23a91e7e709aa6dcc6ed6b87d295164e51 /release/scripts/startup/bl_ui/space_time.py
parent1cf2c099f7a88338b278304b08036dba71a0b522 (diff)
Timeline Header: Only show the "use active keyingset only" toggle (beside the
autokey button) if autokeying is enabled. This was only useful when the latter was actually enabled.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_time.py')
-rw-r--r--release/scripts/startup/bl_ui/space_time.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 7720fddb084..8fb587e2634 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -81,10 +81,12 @@ class TIME_HT_header(Header):
row = layout.row(align=True)
row.prop(toolsettings, "use_keyframe_insert_auto", text="", toggle=True)
- row.prop(toolsettings, "use_keyframe_insert_keyingset", text="", toggle=True)
- if screen.is_animation_playing and toolsettings.use_keyframe_insert_auto:
- subsub = row.row()
- subsub.prop(toolsettings, "use_record_with_nla", toggle=True)
+ if toolsettings.use_keyframe_insert_auto:
+ row.prop(toolsettings, "use_keyframe_insert_keyingset", text="", toggle=True)
+
+ if screen.is_animation_playing:
+ subsub = row.row()
+ subsub.prop(toolsettings, "use_record_with_nla", toggle=True)
row = layout.row(align=True)
row.prop_search(scene.keying_sets_all, "active", scene, "keying_sets_all", text="")