[Bf-blender-cvs] [2a8413a0ddd] blender2.8: Eevee: Don't show probe display when not using scene lighting
Clément Foucault
noreply at git.blender.org
Thu Aug 2 21:12:19 CEST 2018
Commit: 2a8413a0dddbb8693b9a0c0bb88452472ba92cb9
Author: Clément Foucault
Date: Thu Aug 2 21:12:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2a8413a0dddbb8693b9a0c0bb88452472ba92cb9
Eevee: Don't show probe display when not using scene lighting
The display is broken otherwise.
===================================================================
M source/blender/draw/engines/eevee/eevee_lightprobes.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 93f0e7e9315..50f4e694d2a 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -501,7 +501,7 @@ void EEVEE_lightprobes_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedat
}
}
- if (DRW_state_draw_support()) {
+ if (DRW_state_draw_support() && !LOOK_DEV_STUDIO_LIGHT_ENABLED(draw_ctx->v3d)) {
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL | DRW_STATE_CULL_BACK;
psl->probe_display = DRW_pass_create("LightProbe Display", state);
More information about the Bf-blender-cvs
mailing list