diff options
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_volume.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_volume.c b/source/blender/draw/engines/workbench/workbench_volume.c index 1eccc99d9e9..b9ea61fd013 100644 --- a/source/blender/draw/engines/workbench/workbench_volume.c +++ b/source/blender/draw/engines/workbench/workbench_volume.c @@ -229,7 +229,8 @@ static void workbench_volume_object_cache_populate(WORKBENCH_Data *vedata, step_length = len_v3(slice_ct); /* Compute density scale. */ - const float density_scale = volume->display.density; + const float density_scale = volume->display.density * + BKE_volume_density_scale(volume, ob->obmat); /* Set uniforms. */ DRWShadingGroup *grp = DRW_shgroup_create(sh, vedata->psl->volume_ps); |