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
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2018-06-01 13:00:33 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-01 13:01:31 +0300
commitc771bbc27e531327e669fdcdd6edcdee8dc0bb13 (patch)
tree69e96fed07472589049abed47b42723e4bc9a420 /source
parent01c75c3765eb305b1a99b794c1d40ad224b071c6 (diff)
Code cleanup: Compiler warning
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/workbench/workbench_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c
index 3e369c4f429..6c647ba9f49 100644
--- a/source/blender/draw/engines/workbench/workbench_data.c
+++ b/source/blender/draw/engines/workbench/workbench_data.c
@@ -77,7 +77,7 @@ void workbench_private_data_get_light_direction(WORKBENCH_PrivateData *wpd, floa
{
SolidLight *sl = &U.light[index];
if (sl->flag) {
- WORKBENCH_UBO_Light *light = &wd->lights[light_index++];
+ light = &wd->lights[light_index++];
copy_v4_v4(light->light_direction_vs, sl->vec);
negate_v3(light->light_direction_vs);
copy_v4_v4(light->specular_color, sl->spec);