[Bf-blender-cvs] [66a20c9ad78] HMD_viewport: Clear hmd window when no loaded

Campbell Barton noreply at git.blender.org
Sun Apr 2 19:13:42 CEST 2017


Commit: 66a20c9ad787d69ed55a785b1ae7e158f5797c0a
Author: Campbell Barton
Date:   Mon Apr 3 03:12:16 2017 +1000
Branches: HMD_viewport
https://developer.blender.org/rB66a20c9ad787d69ed55a785b1ae7e158f5797c0a

Clear hmd window when no loaded

Without this, the window could be saved in an invalid state.

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 3bc865b510c..aa6b3ef9737 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6179,8 +6179,10 @@ static void direct_link_windowmanager(FileData *fd, wmWindowManager *wm)
 	link_list(fd, &wm->windows);
 #ifdef WITH_INPUT_HMD
 	wm->hmd_view.hmd_win = newdataadr(fd, wm->hmd_view.hmd_win);
+#else
+	wm->hmd_view.hmd_win = NULL;
 #endif
-	
+
 	for (win = wm->windows.first; win; win = win->next) {
 		win->ghostwin = NULL;
 		win->eventstate = NULL;




More information about the Bf-blender-cvs mailing list