diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-01 13:04:24 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-01 13:04:24 +0300 |
commit | 0c18024a8d0cee2ce783bada5060ce5d5540b663 (patch) | |
tree | a4ee258072c82a9c3b8b581e8a346a8c108f2647 | |
parent | c771bbc27e531327e669fdcdd6edcdee8dc0bb13 (diff) |
Fix error
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_data.c | 2 |
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); |