From 79e51d9e5fba95fc9569e75412b27b08bef7a7d5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Dec 2019 12:58:32 +1100 Subject: Cleanup: replace verbose checks with read-only attributes These attributes checked for any baked / baking since this is a common test that was performed in layout code. Also follow our naming convention - using an 'is_/has_' prefix in this case since "cache_baked_data" reads as if it's used to access the baked data. --- source/blender/makesdna/DNA_fluid_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/makesdna/DNA_fluid_types.h') diff --git a/source/blender/makesdna/DNA_fluid_types.h b/source/blender/makesdna/DNA_fluid_types.h index 34d94258735..48befab2200 100644 --- a/source/blender/makesdna/DNA_fluid_types.h +++ b/source/blender/makesdna/DNA_fluid_types.h @@ -192,6 +192,14 @@ enum { FLUID_DOMAIN_OUTDATED_GUIDING = (1 << 14), }; +#define FLUID_DOMAIN_BAKING_ALL \ + (FLUID_DOMAIN_BAKING_DATA | FLUID_DOMAIN_BAKING_NOISE | FLUID_DOMAIN_BAKING_MESH | \ + FLUID_DOMAIN_BAKING_PARTICLES | FLUID_DOMAIN_BAKING_GUIDING) + +#define FLUID_DOMAIN_BAKED_ALL \ + (FLUID_DOMAIN_BAKED_DATA | FLUID_DOMAIN_BAKED_NOISE | FLUID_DOMAIN_BAKED_MESH | \ + FLUID_DOMAIN_BAKED_PARTICLES | FLUID_DOMAIN_BAKED_GUIDING) + #define FLUID_DOMAIN_DIR_DEFAULT "cache_fluid" #define FLUID_DOMAIN_DIR_CONFIG "config" #define FLUID_DOMAIN_DIR_DATA "data" -- cgit v1.2.3