diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-05 14:35:50 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-05 14:36:00 +0300 |
commit | cd0a6ff5c45382fa5620dc6dbf089e2909e38a78 (patch) | |
tree | a2786bebd5526d9015b303dc21ed6ebc74f8a867 /source/blender/makesrna | |
parent | 4d3da4e1d060232382df1414e0c99a094a9b1a28 (diff) |
Fluid: Diffusion settings now optional
For optimization purposes these settings need to be enabled explicitly from now on.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_fluid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c index 7b6ca8b2273..750831668b7 100644 --- a/source/blender/makesrna/intern/rna_fluid.c +++ b/source/blender/makesrna/intern/rna_fluid.c @@ -1563,6 +1563,13 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna) /* diffusion options */ + prop = RNA_def_property(srna, "use_diffusion", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_DOMAIN_USE_DIFFUSION); + RNA_def_property_ui_text( + prop, "Use Diffusion", "Enable fluid diffusion settings (e.g. viscosity, surface tension)"); + RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); + RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_reset"); + prop = RNA_def_property(srna, "surface_tension", PROP_FLOAT, PROP_NONE); RNA_def_property_range(prop, 0.0, 100.0); RNA_def_property_ui_text( |