Skip to content

Commit

Permalink
Exposed soft/rigid hardness to the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfgeoff authored and panzergame committed Dec 17, 2017
1 parent 4b4259c commit 491ed27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/scripts/startup/bl_ui/properties_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def draw(self, context):
sub.active = (soft.use_cluster_rigid_to_softbody or soft.use_cluster_soft_to_softbody)
sub.prop(soft, "cluster_iterations", text="Iterations")

sub.prop(soft, "ksrhr_cl", text="kSRHR_CL")

elif physics_type == 'STATIC':
col = layout.column()
col.prop(game, "use_actor")
Expand Down
6 changes: 6 additions & 0 deletions source/blender/makesrna/intern/rna_object_force.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,12 @@ static void rna_def_game_softbody(BlenderRNA *brna)
"=> set to 0.0 to disable welding test and speed up scene loading "
"(ok if the mesh has no duplicates)");

prop = RNA_def_property(srna, "ksrhr_cl", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "kSRHR_CL");
RNA_def_property_range(prop, 0.01f, 1.0f);
RNA_def_property_ui_text(prop, "ksrhr_cl",
"Soft vs Rigid Hardness");

/* Integers */

prop = RNA_def_property(srna, "location_iterations", PROP_INT, PROP_NONE);
Expand Down

0 comments on commit 491ed27

Please sign in to comment.