diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 04:58:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 05:03:52 +0300 |
commit | 79e51d9e5fba95fc9569e75412b27b08bef7a7d5 (patch) | |
tree | 096ca14d1b3c4173ce8f927117ffbd5f4eae57f5 /source/blender/makesdna/DNA_fluid_types.h | |
parent | a977cb04455c4987711052f9abea04065c618427 (diff) |
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.
Diffstat (limited to 'source/blender/makesdna/DNA_fluid_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_fluid_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
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" |