diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-22 07:08:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-22 07:08:56 +0400 |
commit | fa103d391e06b56521d259341bc6d18e936bb903 (patch) | |
tree | 0f5cb4c83e8024b290b7fd6c806dafaa0b455820 /source/blender/makesrna/intern/rna_rigidbody.c | |
parent | ed191088913b6e36ad0749b7f487906ad7b80198 (diff) |
remove unneeded null checks from commit r56194, also minor style cleanup.
Diffstat (limited to 'source/blender/makesrna/intern/rna_rigidbody.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rigidbody.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_rigidbody.c b/source/blender/makesrna/intern/rna_rigidbody.c index 23c098d6aee..3ca0594d42b 100644 --- a/source/blender/makesrna/intern/rna_rigidbody.c +++ b/source/blender/makesrna/intern/rna_rigidbody.c @@ -607,7 +607,7 @@ static void rna_RigidBodyWorld_convex_sweep_test(RigidBodyWorld *rbw, ReportList } } else { - *r_hit=-1; + *r_hit = -1; BKE_report(reports, RPT_ERROR, "Rigidbody world was not properly initialized, need to step the simulation first"); } #endif @@ -714,17 +714,17 @@ static void rna_def_rigidbody_world(BlenderRNA *brna) RNA_def_property_flag(prop, PROP_REQUIRED); prop = RNA_def_float_vector(func, "object_location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", - "The hit location of this sweep test", -1e4, 1e4); + "The hit location of this sweep test", -1e4, 1e4); RNA_def_property_flag(prop, PROP_THICK_WRAP); RNA_def_function_output(func, prop); prop = RNA_def_float_vector(func, "hitpoint", 3, NULL, -FLT_MAX, FLT_MAX, "Hitpoint", - "The hit location of this sweep test", -1e4, 1e4); + "The hit location of this sweep test", -1e4, 1e4); RNA_def_property_flag(prop, PROP_THICK_WRAP); RNA_def_function_output(func, prop); prop = RNA_def_float_vector(func, "normal", 3, NULL, -FLT_MAX, FLT_MAX, "Normal", - "The face normal at the sweep test hit location", -1e4, 1e4); + "The face normal at the sweep test hit location", -1e4, 1e4); RNA_def_property_flag(prop, PROP_THICK_WRAP); RNA_def_function_output(func, prop); |