diff options
author | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-05-30 15:45:43 +0400 |
---|---|---|
committer | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-05-30 15:45:43 +0400 |
commit | e7e5ef2c040162e4013a0bcd2bea1a097fc40544 (patch) | |
tree | acdb6ddf91d87b96c7d09fcc27344224c3f09ad5 /source/blender | |
parent | 2cf121ca356af7086844fa3115cb3712cdf1bbd6 (diff) |
use_manta property added to smoke DNA
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesdna/DNA_smoke_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_smoke.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_smoke_types.h b/source/blender/makesdna/DNA_smoke_types.h index 25c98b4f07e..b80eb23ab8f 100644 --- a/source/blender/makesdna/DNA_smoke_types.h +++ b/source/blender/makesdna/DNA_smoke_types.h @@ -37,6 +37,7 @@ enum { MOD_SMOKE_HIGHRES = (1 << 1), /* enable high resolution */ MOD_SMOKE_DISSOLVE = (1 << 2), /* let smoke dissolve */ MOD_SMOKE_DISSOLVE_LOG = (1 << 3), /* using 1/x for dissolve */ + MOD_SMOKE_USE_MANTA = (1 << 4), MOD_SMOKE_HIGH_SMOOTH = (1 << 5), /* -- Deprecated -- */ MOD_SMOKE_FILE_LOAD = (1 << 6), /* flag for file load */ diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c index 6e0d374e3e9..a9e49fc11e9 100644 --- a/source/blender/makesrna/intern/rna_smoke.c +++ b/source/blender/makesrna/intern/rna_smoke.c @@ -317,6 +317,10 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna) RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset"); + prop = RNA_def_property(srna, "use_manta", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flags", MOD_SMOKE_USE_MANTA); + RNA_def_property_ui_text(prop, "MantaFlow", "Use Mantaflow"); + prop = RNA_def_property(srna, "amplify", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "amplify"); RNA_def_property_range(prop, 1, 10); |