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:
-rw-r--r--release/ui/space_time.py6
-rw-r--r--source/blender/makesrna/intern/rna_space.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/release/ui/space_time.py b/release/ui/space_time.py
index 59d72525230..45fdeb04ead 100644
--- a/release/ui/space_time.py
+++ b/release/ui/space_time.py
@@ -80,7 +80,13 @@ class TIME_MT_view(bpy.types.Menu):
def draw(self, context):
layout = self.layout
+ st = context.space_data
+
layout.itemO("anim.time_toggle")
+
+ layout.itemS()
+
+ layout.itemR(st, "only_selected")
class TIME_MT_frame(bpy.types.Menu):
__space_type__ = "TIMELINE"
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 6ecf533e39d..664b1713b31 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1160,6 +1160,11 @@ static void rna_def_space_time(BlenderRNA *brna)
prop= RNA_def_property(srna, "continue_physics", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "redraws", TIME_CONTINUE_PHYSICS);
RNA_def_property_ui_text(prop, "Continue Physics", "During playblack, continue physics simulations regardless of the frame number");
+
+ prop= RNA_def_property(srna, "only_selected", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", TIME_ONLYACTSEL);
+ RNA_def_property_ui_text(prop, "Only Selected channels", "Show keyframes only from active/selected channels.");
+ RNA_def_property_update(prop, NC_WINDOW, NULL);
}
static void rna_def_console_line(BlenderRNA *brna)