diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-07-15 14:14:50 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-07-15 14:14:50 +0300 |
commit | ef35dc68d665e652a1f44e8b0190f83beaeef9f2 (patch) | |
tree | 74179a49af7f36a9519187be605e3339fbd76db4 /source/blender/draw/engines/eevee | |
parent | 65a3624877c35e37799be03b54d8b9aae23e660c (diff) |
Fix T66774 Lookdev: Assert switching from rendered to lookdev
The View was being reused accross different redraw (not allowed).
Diffstat (limited to 'source/blender/draw/engines/eevee')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lookdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c index 2d4cc069697..e6e699bef10 100644 --- a/source/blender/draw/engines/eevee/eevee_lookdev.c +++ b/source/blender/draw/engines/eevee/eevee_lookdev.c @@ -71,6 +71,8 @@ void EEVEE_lookdev_cache_init(EEVEE_Data *vedata, View3D *v3d = draw_ctx->v3d; Scene *scene = draw_ctx->scene; + effects->lookdev_view = NULL; + if (LOOK_DEV_OVERLAY_ENABLED(v3d)) { /* Viewport / Spheres size. */ rcti rect; |