diff options
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index c0fee24ba8a..6069ca16312 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -2163,6 +2163,12 @@ short get_activedevice(void) return window_get_activedevice(mainwin); } +short getndof(short *sbval) +{ + winlay_process_events(0); + return window_get_ndof(mainwin, sbval); +} + void add_to_mainqueue(Window *win, void *user_data, short evt, short val, char ascii) { @@ -2227,6 +2233,7 @@ static bScreen *addscreen(char *name) /* use setprefsize() if you want somethin } window_set_handler(mainwin, add_to_mainqueue, NULL); + window_open_ndof(mainwin); /* needs to occur once the mainwin handler is set */ init_mainwin(); mywinset(1); |