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);