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>2015-03-28 13:48:10 +0300
committerJoshua Leung <aligorith@gmail.com>2015-03-28 13:48:10 +0300
commit1a5c5ac742679b625d789614ea6807672e522ebb (patch)
tree01dd683ce67502e12dd7729e6dcb7b9ae0147f0d
parentb7afbaf8ccc315296d2dc824cc8d089108a38558 (diff)
Fix T44068: "Layered" option for auto keyframing doesn't "Insert Available Only" is enabled
The "Layered" option for auto keyframing will create a new NLA strip if playback reaches the end of the frame range and jumps back again. The idea is that instead of overwriting the keyframes you've already made, it will make a new animation layer. However, this does not work with the "Insert Available Only" option (which can either be set in the User Prefs, or in the active keyingset), as that option needs some existing FCurves to tell what it can insert keyframes into. The "fix" here is to simply not show the offending button in situations where it cannot be used!
-rw-r--r--release/scripts/startup/bl_ui/space_time.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 27fcf94666a..819c2af4200 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -30,6 +30,7 @@ class TIME_HT_header(Header):
scene = context.scene
toolsettings = context.tool_settings
screen = context.screen
+ userprefs = context.user_preferences
row = layout.row(align=True)
row.template_header()
@@ -82,7 +83,7 @@ class TIME_HT_header(Header):
if toolsettings.use_keyframe_insert_auto:
row.prop(toolsettings, "use_keyframe_insert_keyingset", text="", toggle=True)
- if screen.is_animation_playing:
+ if screen.is_animation_playing and not userprefs.edit.use_keyframe_insert_available:
subsub = row.row(align=True)
subsub.prop(toolsettings, "use_record_with_nla", toggle=True)