Fix T55061: Shadows were not updated during sclupting.

This commit is contained in:
Jeroen Bakker 2018-05-15 09:12:42 +02:00
parent 52cb62d502
commit 0fb80cebec
Notes: blender-bot 2023-02-14 05:52:33 +01:00
Referenced by issue #55061, Workbench shadows don't update during sculpting
1 changed files with 6 additions and 1 deletions

View File

@ -558,7 +558,12 @@ void workbench_materials_solid_cache_populate(WORKBENCH_Data *vedata, Object *ob
if (SHADOW_ENABLED(wpd) && (ob->display.flag & OB_SHOW_SHADOW) > 0) {
struct Gwn_Batch *geom_shadow = DRW_cache_object_surface_get(ob);
if (geom_shadow) {
DRW_shgroup_call_object_add(wpd->shadow_shgrp, geom_shadow, ob);
if (is_sculpt_mode) {
DRW_shgroup_call_sculpt_add(wpd->shadow_shgrp, ob, ob->obmat);
}
else {
DRW_shgroup_call_object_add(wpd->shadow_shgrp, geom_shadow, ob);
}
}
}
}