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:
authorJulian Eisel <eiseljulian@gmail.com>2019-07-24 17:41:46 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-07-24 17:41:46 +0300
commit091cc94379a2976176f0ae93721cfb2239a60e55 (patch)
tree892d9884448b06ab476b987a68052b91ee7c0c03 /source/blender
parentfc31be5ab031a106bffe4f072dda0512d0e0f629 (diff)
Use fixed lighting, don't make it rotate with view rotation
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c2
-rw-r--r--source/blender/windowmanager/intern/wm_xr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index a21670a6f7f..8d8b314e525 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -1657,8 +1657,6 @@ void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph,
v3d.flag2 = V3D_HIDE_OVERLAYS;
}
- v3d.shading.background_type = V3D_SHADING_BACKGROUND_WORLD;
-
rv3d.persp = RV3D_PERSP;
v3d.clip_start = clip_start;
v3d.clip_end = clip_end;
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index e27c83ad6ca..4f7d2430ba9 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -306,6 +306,8 @@ static GHOST_ContextHandle wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view
glClear(GL_DEPTH_BUFFER_BIT);
BKE_screen_view3d_shading_init(&shading);
+ shading.flag |= V3D_SHADING_WORLD_ORIENTATION;
+ shading.background_type = V3D_SHADING_BACKGROUND_WORLD;
ED_view3d_draw_offscreen_simple(CTX_data_depsgraph(C),
CTX_data_scene(C),
&shading,