[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20275] branches/blender2.5/blender/source /blender/windowmanager/intern/wm_operators.c: 2.5
Ton Roosendaal
ton at blender.org
Tue May 19 17:37:50 CEST 2009
Revision: 20275
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20275
Author: ton
Date: 2009-05-19 17:37:50 +0200 (Tue, 19 May 2009)
Log Message:
-----------
2.5
Added new entry in 10-timer: 'Anim Step'. This will only call the
animation system itself, no drawing.
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c
Modified: branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c 2009-05-19 12:54:54 UTC (rev 20274)
+++ branches/blender2.5/blender/source/blender/windowmanager/intern/wm_operators.c 2009-05-19 15:37:50 UTC (rev 20275)
@@ -33,6 +33,7 @@
#include "DNA_ID.h"
#include "DNA_screen_types.h"
+#include "DNA_scene_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
@@ -49,6 +50,7 @@
#include "BKE_library.h"
#include "BKE_global.h"
#include "BKE_main.h"
+#include "BKE_scene.h"
#include "BKE_utildefines.h"
#include "BIF_gl.h"
@@ -1304,6 +1306,13 @@
CTX_wm_window_set(C, win); /* XXX context manipulation warning! */
}
+ else if (type==3) {
+ Scene *scene= CTX_data_scene(C);
+
+ if(a & 1) scene->r.cfra--;
+ else scene->r.cfra++;
+ scene_update_for_newframe(scene, scene->lay);
+ }
else {
ED_undo_pop(C);
ED_undo_redo(C);
@@ -1315,7 +1324,8 @@
if(type==0) sprintf(tmpstr, "10 x Draw Region: %d ms", time);
if(type==1) sprintf(tmpstr, "10 x Draw Region and Swap: %d ms", time);
if(type==2) sprintf(tmpstr, "10 x Draw Window and Swap: %d ms", time);
- if(type==3) sprintf(tmpstr, "10 x Undo/Redo: %d ms", time);
+ if(type==3) sprintf(tmpstr, "Anim Step: %d ms", time);
+ if(type==4) sprintf(tmpstr, "10 x Undo/Redo: %d ms", time);
WM_cursor_wait(0);
@@ -1330,7 +1340,8 @@
{0, "DRAW", "Draw Region", ""},
{1, "DRAWSWAP", "Draw Region + Swap", ""},
{2, "DRAWWINSWAP", "Draw Window + Swap", ""},
- {3, "UNDO", "Undo/Redo", ""},
+ {3, "ANIMSTEP", "Anim Step", ""},
+ {4, "UNDO", "Undo/Redo", ""},
{0, NULL, NULL, NULL}};
ot->name= "Ten Timer";
More information about the Bf-blender-cvs
mailing list