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:
authorThomas Dinges <blender@dingto.org>2009-06-04 02:19:04 +0400
committerThomas Dinges <blender@dingto.org>2009-06-04 02:19:04 +0400
commit34014df367d61bca0223eee25a9aa7b2c5a0e232 (patch)
treea6ea7e91c7e4811d36b166cda91819a40320f89b /source/blender/makesrna/intern/rna_modifier.c
parent7c3c9df2c07f739448e804d2ed9fc3d596f5022a (diff)
2.5 RNA:
* Started wrapping object force. * Added "absorption" property in Collision Modifier RNA.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index bc3da3b5a9e..86bea0e7981 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1369,10 +1369,17 @@ static void rna_def_modifier_cloth(BlenderRNA *brna)
static void rna_def_modifier_collision(BlenderRNA *brna)
{
StructRNA *srna;
+ PropertyRNA *prop;
srna= RNA_def_struct(brna, "CollisionModifier", "Modifier");
RNA_def_struct_ui_text(srna, "Collision Modifier", "Collision modifier defining modifier stack position used for collision.");
RNA_def_struct_sdna(srna, "CollisionModifierData");
+
+ prop= RNA_def_property(srna, "absorption", PROP_INT, PROP_PERCENTAGE);
+ RNA_def_property_int_sdna(prop, NULL, "absorption");
+ RNA_def_property_ui_range(prop, 0, 100, 1, 2);
+ RNA_def_property_ui_text(prop, "Absorption %", "How much of effector force gets lost during collision with this object (in percent).");
+ RNA_def_property_update(prop, NC_OBJECT|ND_MODIFIER, "rna_Modifier_update");
}
static void rna_def_modifier_bevel(BlenderRNA *brna)