[Bf-blender-cvs] [0935d32] fracture_modifier: fix, force autohide facepair generation only from valid DM
Martin Felke
noreply at git.blender.org
Fri May 27 20:28:42 CEST 2016
Commit: 0935d32ffb19ae902db1321216fd9a014e5b58bd
Author: Martin Felke
Date: Fri May 27 20:28:33 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rB0935d32ffb19ae902db1321216fd9a014e5b58bd
fix, force autohide facepair generation only from valid DM
if primary source is invalid, force fallback to secondary source earlier now
===================================================================
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 467dd30..bf03c39 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -3488,7 +3488,8 @@ static void do_refresh_autohide(FractureModifierData *fmd, Object *ob)
fmd->face_pairs = BLI_ghash_int_new("face_pairs");
- if (fmd->dm)
+ /* in case of re-using existing islands this one might become invalid for autohide, so force fallback */
+ if (fmd->dm && fmd->dm->getNumPolys(fmd->dm) > 0)
{
make_face_pairs(fmd, fmd->dm, ob);
}
More information about the Bf-blender-cvs
mailing list