forked from bartvdbraak/blender
EEVEE+Workbench: Show partsys in final rendering
In final rendering mode the display type was tested for visibility flag. This should only occus when doing viewport rendering Reviewed By: fclem Maniphest Tasks: T63056 Differential Revision: https://developer.blender.org/D4643
This commit is contained in:
parent
df3c1dde04
commit
01d0903f1e
@ -1551,7 +1551,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_ViewLayerData *sld
|
||||
*/
|
||||
bool use_volume_material = (gpumat_array[0] && GPU_material_use_domain_volume(gpumat_array[0]));
|
||||
|
||||
if (ob->dt >= OB_SOLID) {
|
||||
if (DRW_state_is_image_render() || ob->dt >= OB_SOLID) {
|
||||
/* Get per-material split surface */
|
||||
char *auto_layer_names;
|
||||
int *auto_layer_is_srgb;
|
||||
|
@ -897,7 +897,7 @@ void workbench_deferred_solid_cache_populate(WORKBENCH_Data *vedata, Object *ob)
|
||||
if (!(DRW_object_visibility_in_active_context(ob) & OB_VISIBLE_SELF)) {
|
||||
return;
|
||||
}
|
||||
if (ob->dt < OB_SOLID) {
|
||||
if (!DRW_state_is_image_render() && ob->dt < OB_SOLID) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user