Timeline Header: Only show the "use active keyingset only" toggle (beside the
authorJoshua Leung <aligorith@gmail.com>
Sun, 6 May 2012 06:57:02 +0000 (06:57 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 6 May 2012 06:57:02 +0000 (06:57 +0000)
autokey button) if autokeying is enabled. This was only useful when the latter
was actually enabled.

release/scripts/startup/bl_ui/space_time.py

index 7720fddb08488b682d9ebb4dfc53ec2acbac8dc7..8fb587e263417a02d19121561b5a8f16ffc28467 100644 (file)
@@ -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="")