diff options
author | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-06-11 00:59:58 +0400 |
---|---|---|
committer | Roman Pogribnyi <pogribnyi@gmail.com> | 2014-06-11 00:59:58 +0400 |
commit | c0ecba800204067e7c5f5927923a98e4daedcd5c (patch) | |
tree | b14d7b563545b4be8fab7d2339de2ddcfdbc4f87 /source/blender | |
parent | b37b145a951cf64190b961a605e6aedd77cb39d1 (diff) |
UI for UVS count
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesdna/DNA_smoke_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_smoke.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_smoke_types.h b/source/blender/makesdna/DNA_smoke_types.h index 9384ed8182a..c8bec28466d 100644 --- a/source/blender/makesdna/DNA_smoke_types.h +++ b/source/blender/makesdna/DNA_smoke_types.h @@ -152,7 +152,7 @@ typedef struct SmokeDomainSettings { float flame_smoke_color[3]; /* mantaflow settings */ int manta_solver_res; /*dimension of manta solver, 2d or 3d*/ - int manta_mockvar; + int manta_uvs_num; /*number of UVs, important for octaves count*/ } SmokeDomainSettings; diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c index 137c1fc8b67..6c1abbbab86 100644 --- a/source/blender/makesrna/intern/rna_smoke.c +++ b/source/blender/makesrna/intern/rna_smoke.c @@ -557,6 +557,13 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Solver Res", "Solver resolution(2D/3D)"); RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset"); + prop = RNA_def_property(srna, "manta_uvs", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "manta_uvs_num"); + RNA_def_property_range(prop, 0, 4); + RNA_def_property_ui_range(prop, 0, 4, 1, -1); + RNA_def_property_ui_text(prop, "UVs number", "how many uv coordinate grind to use(Better not more than 2)"); + RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset"); + } static void rna_def_smoke_flow_settings(BlenderRNA *brna) |