diff options
author | Julian Eisel <julian@blender.org> | 2020-03-12 20:48:50 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-12 20:48:50 +0300 |
commit | 27774c3e0d70337e76889945479482171c1f0de1 (patch) | |
tree | 0b845a0fa484358ce7f7d1ee3773d3ac94e85215 /source/blender/windowmanager/WM_api.h | |
parent | 67da109882b236036dea3c513e697b2dea96916e (diff) |
Fix division-by-zero on session start with VR mirror enabled
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 62ec5a491c4..0516982e350 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -875,9 +875,9 @@ void WM_generic_user_data_free(struct wmGenericUserData *user_data); /* wm_xr.c */ bool WM_xr_session_was_started(const wmXrData *xr); bool WM_xr_session_is_running(const wmXrData *xr); -void WM_xr_session_state_viewer_location_get(const wmXrData *xr, float r_location[3]); -void WM_xr_session_state_viewer_rotation_get(const wmXrData *xr, float r_rotation[4]); -void WM_xr_session_state_viewer_matrix_info_get(const wmXrData *xr, +bool WM_xr_session_state_viewer_location_get(const wmXrData *xr, float r_location[3]); +bool WM_xr_session_state_viewer_rotation_get(const wmXrData *xr, float r_rotation[4]); +bool WM_xr_session_state_viewer_matrix_info_get(const wmXrData *xr, float r_viewmat[4][4], float *r_focal_len); #endif |