Commit: 85cde2a444f04e163ccc70464169423bd07041d1
Author: Julian Eisel
Date: Thu Mar 17 18:38:28 2016 +0100
Branches: HMD_viewport
https://developer.blender.org/rB85cde2a444f04e163ccc70464169423bd07041d1
Fix start session button not grayed out if HMD window was closed using window
handlers
===================================================================
M source/blender/windowmanager/intern/wm_window.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_window.c
b/source/blender/windowmanager/intern/wm_window.c
index 6fa7993..10bc3ef 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -336,6 +336,9 @@ void wm_window_close(bContext *C, wmWindowManager *wm,
wmWindow *win)
if (win->screen) {
ED_screen_exit(C, win, win->screen);
}
+ if (wm->win_hmd == win) {
+ wm->win_hmd = NULL;
+ }
wm_window_free(C, wm, win);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs