Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-17 06:45:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-17 06:49:11 +0300
commit2564e2a2ad9605398322e3ac2c7c49cc78e0a8f0 (patch)
tree9fce13cd6818d9557cfd5ce4e943325aab156502 /source/blender
parent86764910908215902562ba95e8d3d5b418274c97 (diff)
Cleanup: RNA naming
- Use abbreviations min/max this is used throughout the existing API. - Rename use_adaptive_stepping to use_adaptive_timesteps since this is used with timesteps_min/max it's clearer to use matching terms.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_fluid.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c
index 5fc5b698e83..e30a288ff44 100644
--- a/source/blender/makesrna/intern/rna_fluid.c
+++ b/source/blender/makesrna/intern/rna_fluid.c
@@ -1554,7 +1554,8 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna)
prop, "Number", "Particle number factor (higher value results in more particles)");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_resetCache");
- prop = RNA_def_property(srna, "particle_minimum", PROP_INT, PROP_NONE);
+ prop = RNA_def_property(srna, "particle_min", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "particle_minimum");
RNA_def_property_range(prop, 0, 1000);
RNA_def_property_ui_text(prop,
"Minimum",
@@ -1562,7 +1563,8 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna)
"least this amount of particles)");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_resetCache");
- prop = RNA_def_property(srna, "particle_maximum", PROP_INT, PROP_NONE);
+ prop = RNA_def_property(srna, "particle_max", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "particle_maximum");
RNA_def_property_range(prop, 0, 1000);
RNA_def_property_ui_text(prop,
"Maximum",
@@ -2094,19 +2096,21 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna)
prop, "CFL", "Maximal velocity per cell (higher value results in larger timesteps)");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_resetCache");
- prop = RNA_def_property(srna, "use_adaptive_stepping", PROP_BOOLEAN, PROP_NONE);
+ prop = RNA_def_property(srna, "use_adaptive_timesteps", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_DOMAIN_USE_ADAPTIVE_TIME);
- RNA_def_property_ui_text(prop, "Adaptive stepping", "Enable adaptive time-stepping");
+ RNA_def_property_ui_text(prop, "Use Adaptive Time Steps", "");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_resetCache");
- prop = RNA_def_property(srna, "timesteps_minimum", PROP_INT, PROP_NONE);
+ prop = RNA_def_property(srna, "timesteps_min", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "timesteps_minimum");
RNA_def_property_range(prop, 1, 100);
RNA_def_property_ui_range(prop, 0, 100, 1, -1);
RNA_def_property_ui_text(
prop, "Minimum", "Minimum number of simulation steps to perform for one frame");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_reset");
- prop = RNA_def_property(srna, "timesteps_maximum", PROP_INT, PROP_NONE);
+ prop = RNA_def_property(srna, "timesteps_max", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "timesteps_maximum");
RNA_def_property_range(prop, 1, 100);
RNA_def_property_ui_range(prop, 0, 100, 1, -1);
RNA_def_property_ui_text(