[Bf-blender-cvs] [63f90d1] fracture_modifier: dynamic fracture, crash fix for autohide
Martin Felke
noreply at git.blender.org
Sun Oct 2 18:25:38 CEST 2016
Commit: 63f90d1099131cd9698ffd256e754bf4ac157774
Author: Martin Felke
Date: Sun Oct 2 18:23:13 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rB63f90d1099131cd9698ffd256e754bf4ac157774
dynamic fracture, crash fix for autohide
===================================================================
M source/blender/modifiers/intern/MOD_fracture.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_fracture.c b/source/blender/modifiers/intern/MOD_fracture.c
index 4bc8e7a..c6c3281 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -2945,6 +2945,10 @@ static void find_other_face(FractureModifierData *fmd, int i, BMesh* bm, Object*
return;
}
+ if (other >= bm->totface) {
+ return;
+ }
+
f1 = BM_face_at_index(bm, i);
f2 = BM_face_at_index(bm, other);
More information about the Bf-blender-cvs
mailing list