[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17577] trunk/blender/source/blender/src/ header_time.c: * Added a new Timeline menu entry: Playback -> Sync Playback to Frames/Sec.

Matt Ebb matt at mke3.net
Wed Nov 26 01:47:39 CET 2008


Revision: 17577
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17577
Author:   broken
Date:     2008-11-26 01:47:38 +0100 (Wed, 26 Nov 2008)

Log Message:
-----------
* Added a new Timeline menu entry: Playback -> Sync Playback to Frames/Sec. It's 
more convenient and sensible to find this feature, than over in the audio settings 
(dropping frames in playback is not just for audio!)

Modified Paths:
--------------
    trunk/blender/source/blender/src/header_time.c

Modified: trunk/blender/source/blender/src/header_time.c
===================================================================
--- trunk/blender/source/blender/src/header_time.c	2008-11-25 23:14:00 UTC (rev 17576)
+++ trunk/blender/source/blender/src/header_time.c	2008-11-26 00:47:38 UTC (rev 17577)
@@ -160,6 +160,9 @@
 		if(event==1001) {
 			button(&G.scene->r.frs_sec,1,120,"FPS:");
 		}
+		else if(event==1002) {
+			G.scene->audio.flag ^= AUDIO_SYNC;
+		}
 	}
 }
 			
@@ -202,7 +205,11 @@
 
 	uiDefBut(block, SEPR, 0, "",        0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
 	
-	sprintf(str, "Set Frames/Sec (%d/%f)", G.scene->r.frs_sec, G.scene->r.frs_sec_base);
+	if(G.scene->audio.flag & AUDIO_SYNC) icon= ICON_CHECKBOX_HLT;
+	else icon= ICON_CHECKBOX_DEHLT;
+	uiDefIconTextBut(block, BUTM, 1, icon, "Sync Playback to Frames/Sec",      0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 1002, "");
+	
+	sprintf(str, "Set Frames/Sec (%d/%2f)", G.scene->r.frs_sec, G.scene->r.frs_sec_base);
 	uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, str,	 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 1001, "");
 
 	uiDefBut(block, SEPR, 0, "",        0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");





More information about the Bf-blender-cvs mailing list