From 63a9f24b55d0b5d84d625bdbb44d498fb1f2ae01 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 20 Oct 2020 11:00:16 +0200 Subject: Volumes: simplify volumes in modifiers or on load This changes how the simplify volumes setting works. Before, it only affeted viewport rendering. This was an issue, because all internal computations would still have to happen on the high resolution volumes. With this patch, the simplify setting already affects file loading and procedural generation of volumes. Rendering does not have to care about the simplify option anymore, it just gets the correct simplified version from the depsgraph. Reviewers: brecht Differential Revision: https://developer.blender.org/D9176 --- source/blender/makesdna/DNA_volume_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_volume_types.h') diff --git a/source/blender/makesdna/DNA_volume_types.h b/source/blender/makesdna/DNA_volume_types.h index bbd23298aea..d6a3cdf04bf 100644 --- a/source/blender/makesdna/DNA_volume_types.h +++ b/source/blender/makesdna/DNA_volume_types.h @@ -31,7 +31,9 @@ typedef struct Volume_Runtime { /* Current frame in sequence for evaluated volume */ int frame; - int _pad; + + /* Default simplify level for volume grids loaded from files. */ + int default_simplify_level; } Volume_Runtime; typedef struct VolumeDisplay { -- cgit v1.2.3