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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-06-20 13:26:06 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-20 13:29:09 +0300
commitc17ba4a9032246cc674cdc03a2f39b91b32fecd9 (patch)
tree09d81d8c0818df35a4b51b2ab603b74dfee1241a /source/blender/draw/engines/workbench/workbench_data.c
parent84c2ef0eaf9d9901f6a88c6e095490378ac5d677 (diff)
T55550: Workbench Shadows are incorrect in first draw cycle
Shadows uses the old location for light_direction. Maybe a merge conflict.
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_data.c')
-rw-r--r--source/blender/draw/engines/workbench/workbench_data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c
index b4a2330f173..efadf969830 100644
--- a/source/blender/draw/engines/workbench/workbench_data.c
+++ b/source/blender/draw/engines/workbench/workbench_data.c
@@ -155,8 +155,7 @@ void workbench_private_data_get_light_direction(WORKBENCH_PrivateData *wpd, floa
copy_v3_v3(light_direction, scene->display.light_direction);
negate_v3(light_direction);
-
- DRW_uniformbuffer_update(wpd->world_ubo, &wpd->world_data);
+ DRW_uniformbuffer_update(wpd->world_ubo, wd);
}
static void workbench_private_material_free(void *data)