2.5 Timeline:
authorThomas Dinges <blender@dingto.org>
Mon, 17 Aug 2009 11:45:24 +0000 (11:45 +0000)
committerThomas Dinges <blender@dingto.org>
Mon, 17 Aug 2009 11:45:24 +0000 (11:45 +0000)
* Added "Only selected" Option in View menu.

release/ui/space_time.py
source/blender/makesrna/intern/rna_space.c

index 59d72525230e92e2a0a6432cf690fd47a5c32652..45fdeb04ead4350f277491faf5bb8b7de8ec208a 100644 (file)
@@ -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"
index 6ecf533e39df00faec5982407049fa80320baa08..664b1713b31fe66f1798651e75da42375a58e09e 100644 (file)
@@ -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)