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:
authorTon Roosendaal <ton@blender.org>2005-05-12 18:30:17 +0400
committerTon Roosendaal <ton@blender.org>2005-05-12 18:30:17 +0400
commit34d8522431820d4bd17f190d884afb73d2510dbf (patch)
tree28029ab8b692156891d1d0275de6e959c61a28ae /source/blender/src/edittime.c
parentaca394e341fa67225838ddd13cd4f0d4e84bee77 (diff)
bugfix #2532
Grab Time marker didn't idle correctly... was not checking for correct previous mousecoordinate.
Diffstat (limited to 'source/blender/src/edittime.c')
-rw-r--r--source/blender/src/edittime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c
index b1f0d9af00a..cce611c6d51 100644
--- a/source/blender/src/edittime.c
+++ b/source/blender/src/edittime.c
@@ -332,7 +332,7 @@ void timeline_grab(int mode, int smode) // mode and smode unused here, for callb
float dx, fac;
int a, ret_val= 0, totmark=0, *oldframe, offs, firsttime=1;
unsigned short event;
- short val, pmval[2], mval[2];
+ short val, pmval[2], mval[2], mvalo[2];
char str[32];
for(marker= G.scene->markers.first; marker; marker= marker->next) {
@@ -353,12 +353,14 @@ void timeline_grab(int mode, int smode) // mode and smode unused here, for callb
dx= (G.v2d->cur.xmax-G.v2d->cur.xmin)/dx;
getmouseco_areawin(pmval);
+ mvalo[0]= pmval[0];
while(ret_val == 0) {
getmouseco_areawin(mval);
- if (mval[0] != pmval[0] || firsttime) {
+ if (mval[0] != mvalo[0] || firsttime) {
+ mvalo[0]= mval[0];
firsttime= 0;
fac= (((float)(mval[0] - pmval[0]))*dx);
@@ -389,9 +391,7 @@ void timeline_grab(int mode, int smode) // mode and smode unused here, for callb
force_draw(0); // areas identical to this, 0 = no header
}
-
- /* essential for idling subloop */
- if( qtest()==0) PIL_sleep_ms(2);
+ else PIL_sleep_ms(10); // idle
/* emptying queue and reading events */
while( qtest() ) {