[Bf-blender-cvs] [d17e6fb193f] soc-2020-soft-body: ui updates

mattoverby noreply at git.blender.org
Tue Aug 11 18:05:33 CEST 2020


Commit: d17e6fb193fb80c53c4dd853ae65ec93e24c38c4
Author: mattoverby
Date:   Tue Aug 11 11:05:29 2020 -0500
Branches: soc-2020-soft-body
https://developer.blender.org/rBd17e6fb193fb80c53c4dd853ae65ec93e24c38c4

ui updates

===================================================================

M	release/scripts/startup/bl_ui/properties_physics_softbody.py
M	source/blender/makesrna/intern/rna_object_force.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_physics_softbody.py b/release/scripts/startup/bl_ui/properties_physics_softbody.py
index ace78e38b77..a39b0c4c7ce 100644
--- a/release/scripts/startup/bl_ui/properties_physics_softbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_softbody.py
@@ -56,7 +56,8 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):
 
         layout.prop(softbody, "solver_mode")
     
-        layout.prop(softbody, "collision_collection")
+        if softbody.solver_mode=='LEGACY':
+            layout.prop(softbody, "collision_collection")
 
 
 class PHYSICS_PT_softbody_object(PhysicButtonsPanel, Panel):
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 2354049a799..19b9e13e39c 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -1800,7 +1800,7 @@ static void rna_def_softbody(BlenderRNA *brna)
 
   static const EnumPropertyItem admmpd_material_items[] = {
       {0, "ARAP", 0, "ARAP", "As-rigid-as-possible"},
-      {1, "NH", 0, "neo-Hookean", "Classic neo-Hookean"},
+      {1, "NH", 0, "Neo-Hookean", "Classic neo-Hookean"},
       {0, NULL, 0, NULL, NULL},
   };
 
@@ -1871,26 +1871,26 @@ static void rna_def_softbody(BlenderRNA *brna)
   prop = RNA_def_property(srna, "admmpd_max_admm_iters", PROP_INT, PROP_NONE);
   RNA_def_property_int_sdna(prop, NULL, "admmpd_max_admm_iters");
   RNA_def_property_range(prop, 1.f, 1000.f);
-  RNA_def_property_ui_text(prop, "Max iterations", "Max number of solver iterations");
+  RNA_def_property_ui_text(prop, "Max Iterations", "Max number of solver iterations");
   RNA_def_property_update(prop, 0, "rna_softbody_update");
 
   prop = RNA_def_property(srna, "admmpd_converge_eps", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "admmpd_converge_eps");
   RNA_def_property_range(prop, 0.0f, 1.0f);
-  RNA_def_property_ui_text(prop, "Tolerance", "Solver tolerance");
+  RNA_def_property_ui_text(prop, "Tolerance", "Decrease tolerance for a more accurate solution");
   RNA_def_property_update(prop, 0, "rna_softbody_update");
 
   prop = RNA_def_property(srna, "admmpd_youngs_exp", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "admmpd_youngs_exp");
   RNA_def_property_range(prop, 1.f, 10.f);
-  RNA_def_property_ui_text(prop, "Young's mod", "Young's modulus exponent: 10^(n)");
+  RNA_def_property_ui_text(prop, "Young's Mod", "Young's modulus exponent: 10^(n)");
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
   RNA_def_property_update(prop, 0, "rna_softbody_update");
 
   prop = RNA_def_property(srna, "admmpd_poisson", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "admmpd_poisson");
   RNA_def_property_range(prop, 0.0f, 0.499f);
-  RNA_def_property_ui_text(prop, "Poisson's ratio", "Material stiffness");
+  RNA_def_property_ui_text(prop, "Poisson's Ratio", "Material stiffness");
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
   RNA_def_property_update(prop, 0, "rna_softbody_update");
 
@@ -1924,7 +1924,7 @@ static void rna_def_softbody(BlenderRNA *brna)
   prop = RNA_def_property(srna, "admmpd_density_kgm3", PROP_FLOAT, PROP_NONE);
   RNA_def_property_float_sdna(prop, NULL, "admmpd_density_kgm3");
   RNA_def_property_range(prop, 1.0f, 10000.f);
-  RNA_def_property_ui_text(prop, "Unit density", "Unit density in kg/m^3");
+  RNA_def_property_ui_text(prop, "Unit Density", "Unit density in kg/m^3");
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
   RNA_def_property_update(prop, 0, "rna_softbody_update");



More information about the Bf-blender-cvs mailing list