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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-30 12:17:32 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-30 12:17:32 +0300
commit4279e6d1fd20c51a83bc419833434dee1d1d2101 (patch)
treec99227b80fe7a86f051c91ab82c4456054b776d1 /source/blender/editors/space_file/file_draw.c
parent7d0885915b1b7724ab08a3542ba2faf5e90be705 (diff)
Added a comment in the code about a timer that is not being freed and
is causing the smooth view operator to run all the time after closing the file browser, since I can't think of a good way to fix it at the moment.
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r--source/blender/editors/space_file/file_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 5db17d8bc7c..ad3ec1a3d69 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -623,6 +623,8 @@ void file_draw_list(const bContext *C, ARegion *ar)
}
}
+ /* XXX this timer is never removed, cause smooth view operator
+ to get executed all the time after closing file browser */
if (!sfile->loadimage_timer)
sfile->loadimage_timer= WM_event_add_timer(CTX_wm_manager(C), CTX_wm_window(C), TIMER1, 1.0/30.0); /* max 30 frames/sec. */