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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-11-14 18:48:01 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:30:08 +0300
commit325990ff6e57bfbac9c3aab5d12f13670f9ef246 (patch)
tree9b7bcd29864dd5cd1e5a937fa214e25dbb88baea /source/blender/makesrna/intern/rna_cloth.c
parentfaa112cd27bbce2498910e551373a37437513f7a (diff)
Use dedicated debug values in cloth settings instead of abusing unused
other values. Conflicts: source/blender/physics/intern/BPH_mass_spring.cpp
Diffstat (limited to 'source/blender/makesrna/intern/rna_cloth.c')
-rw-r--r--source/blender/makesrna/intern/rna_cloth.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_cloth.c b/source/blender/makesrna/intern/rna_cloth.c
index c31287097f6..dced2e809ba 100644
--- a/source/blender/makesrna/intern/rna_cloth.c
+++ b/source/blender/makesrna/intern/rna_cloth.c
@@ -397,6 +397,26 @@ static void rna_def_cloth_sim_settings(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Target Density Strength", "Influence of target density on the simulation");
RNA_def_property_update(prop, 0, "rna_cloth_update");
+ prop = RNA_def_property(srna, "debug1", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_range(prop, 0.0f, 1000000.0f);
+ RNA_def_property_ui_text(prop, "Debug1", "");
+ RNA_def_property_update(prop, 0, "rna_cloth_update");
+
+ prop = RNA_def_property(srna, "debug2", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_range(prop, 0.0f, 1000000.0f);
+ RNA_def_property_ui_text(prop, "Debug2", "");
+ RNA_def_property_update(prop, 0, "rna_cloth_update");
+
+ prop = RNA_def_property(srna, "debug3", PROP_INT, PROP_NONE);
+ RNA_def_property_range(prop, 0.0f, 1000000.0f);
+ RNA_def_property_ui_text(prop, "Debug3", "");
+ RNA_def_property_update(prop, 0, "rna_cloth_update");
+
+ prop = RNA_def_property(srna, "debug4", PROP_INT, PROP_NONE);
+ RNA_def_property_range(prop, 0.0f, 1000000.0f);
+ RNA_def_property_ui_text(prop, "Debug4", "");
+ RNA_def_property_update(prop, 0, "rna_cloth_update");
+
/* mass */
prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_NONE);