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:
Diffstat (limited to 'source/blender/blenkernel/intern/rigidbody.c')
-rw-r--r--source/blender/blenkernel/intern/rigidbody.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 9db060c975d..924a2368c50 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -4046,7 +4046,9 @@ static bool check_constraint_island(FractureModifierData* fmd, MeshIsland *mi1,
RB_shape_set_margin(mi2->rigidbody->physics_shape, is_near ? 0.0f : RBO_GET_MARGIN(mi2->rigidbody));
}
- return ((mi1->constraint_index != mi2->constraint_index) ||
+ return (((mi1->constraint_index != mi2->constraint_index) ||
+ ((mi1->constraint_index == mi2->constraint_index) &&
+ (mi1->particle_index != mi2->particle_index))) &&
(fmd->use_self_collision && is_near));
}