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:
authorSergey Sharybin <sergey@blender.org>2022-06-22 11:54:13 +0300
committerSergey Sharybin <sergey@blender.org>2022-06-22 11:55:08 +0300
commita7b91fc8bcd208456df00498607b3c2e066b8fd6 (patch)
treec08022a1856ba3f38b41462a9743e5f89e52f086 /source/blender/blenkernel
parent31d80ddeaad2615d258e1d4fa5703308c458055e (diff)
Cleanup: clang-format
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/rigidbody.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 2f20b1e661b..ea2f3c2186e 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -1964,24 +1964,24 @@ static void rigidbody_update_external_forces(Depsgraph *depsgraph,
float eff_loc[3], eff_vel[3];
/* create dummy 'point' which represents last known position of object as result of sim
- */
+ */
/* XXX: this can create some inaccuracies with sim position,
- * but is probably better than using un-simulated values? */
+ * but is probably better than using un-simulated values? */
RB_body_get_position(rbo->shared->physics_object, eff_loc);
RB_body_get_linear_velocity(rbo->shared->physics_object, eff_vel);
pd_point_from_loc(scene, eff_loc, eff_vel, 0, &epoint);
/* Calculate net force of effectors, and apply to sim object:
- * - we use 'central force' since apply force requires a "relative position"
- * which we don't have... */
+ * - we use 'central force' since apply force requires a "relative position"
+ * which we don't have... */
BKE_effectors_apply(effectors, NULL, effector_weights, &epoint, eff_force, NULL, NULL);
if (G.f & G_DEBUG) {
printf("\tapplying force (%f,%f,%f) to '%s'\n",
- eff_force[0],
- eff_force[1],
- eff_force[2],
- ob->id.name + 2);
+ eff_force[0],
+ eff_force[1],
+ eff_force[2],
+ ob->id.name + 2);
}
/* activate object in case it is deactivated */
if (!is_zero_v3(eff_force)) {