Commit: 89042f576e3865ab26f3330e8f78798c197b14c4
Author: Jeroen Bakker
Date:   Wed Jun 6 15:25:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB89042f576e3865ab26f3330e8f78798c197b14c4

LookDev: When HDRI could not be reloaded we should switch to world

Thanks for reporting sergey!

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

M       source/blender/draw/engines/eevee/eevee_lookdev.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c 
b/source/blender/draw/engines/eevee/eevee_lookdev.c
index 8ef52f8c553..5c626b42ddd 100644
--- a/source/blender/draw/engines/eevee/eevee_lookdev.c
+++ b/source/blender/draw/engines/eevee/eevee_lookdev.c
@@ -42,7 +42,7 @@ void EEVEE_lookdev_cache_init(
        const DRWContextState *draw_ctx = DRW_context_state_get();
        View3D *v3d = draw_ctx->v3d;
        if (LOOK_DEV_MODE_ENABLED(v3d)) {
-               StudioLight *sl = 
BKE_studiolight_find(v3d->shading.studio_light, STUDIOLIGHT_ORIENTATION_WORLD);
+               StudioLight *sl = 
BKE_studiolight_find(v3d->shading.studio_light, STUDIOLIGHT_INTERNAL | 
STUDIOLIGHT_ORIENTATION_WORLD);
                if ((sl->flag & STUDIOLIGHT_ORIENTATION_WORLD)) {
                        struct Gwn_Batch *geom = 
DRW_cache_fullscreen_quad_get();
                        GPUTexture *tex;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to