diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-04-25 19:36:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-04-27 13:59:17 +0400 |
commit | c26105278fd770241763e04645dfcf5097e1c5d4 (patch) | |
tree | 9e4c985077bc604e4f2b7ab3ae3f678abab39b5c /source/blender/makesrna/intern/rna_scene.c | |
parent | b6e967be636d0e1bae842b2c52c76fd867a4784a (diff) |
Fix T34993: "Jump to Next Keyframe" shortcut not related to the timeline viewable keyframes
Made the timeline option to only show keyframes from selected channels/data be a
per-scene setting instead of the per-timeline option it was previously. This makes
it easier for animators working on rigs with multiple bones (especially during the
polishing phase), since now the timeline and jump to keyframe operators use the same
setting to decide which subset of keyframes they need to consider.
By default, this option is enabled by default.
TODO: Extend this to the keyframe status shading on the active object name in the 3D view?
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 5df4b030c4a..7ea719c7eb3 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5247,6 +5247,14 @@ void RNA_def_scene(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Preview Range End Frame", "Alternative end frame for UI playback"); RNA_def_property_update(prop, NC_SCENE | ND_FRAME, NULL); + /* Timeline / Time Navigation settings */ + prop = RNA_def_property(srna, "show_keys_from_selected_only", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SCE_KEYS_NO_SELONLY); + RNA_def_property_ui_text(prop, "Only Keyframes from Selected Channels", + "Consider keyframes for active Object and/or its selected bones only " + "(in timeline and when jumping between keyframes)"); + RNA_def_property_update(prop, NC_SCENE | ND_FRAME, NULL); + /* Stamp */ prop = RNA_def_property(srna, "use_stamp_note", PROP_STRING, PROP_NONE); RNA_def_property_string_sdna(prop, NULL, "r.stamp_udata"); |