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-01 13:04:24 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-01 13:04:24 +0300
commit0c18024a8d0cee2ce783bada5060ce5d5540b663 (patch)
treea4ee258072c82a9c3b8b581e8a346a8c108f2647
parentc771bbc27e531327e669fdcdd6edcdee8dc0bb13 (diff)
Fix error
-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 6c647ba9f49..3e369c4f429 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) {
- light = &wd->lights[light_index++];
+ WORKBENCH_UBO_Light *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);