Revision: 41506
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41506
Author:   campbellbarton
Date:     2011-11-04 00:27:18 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
fix for crash in explode modifier.

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/modifiers/intern/MOD_explode.c

Modified: branches/bmesh/blender/source/blender/modifiers/intern/MOD_explode.c
===================================================================
--- branches/bmesh/blender/source/blender/modifiers/intern/MOD_explode.c        
2011-11-03 23:20:54 UTC (rev 41505)
+++ branches/bmesh/blender/source/blender/modifiers/intern/MOD_explode.c        
2011-11-04 00:27:18 UTC (rev 41506)
@@ -643,7 +643,12 @@
        }
 
        /* override original facepa (original pointer is saved in caller 
function) */
-       facepa= MEM_callocN(sizeof(int)*(totface+totfsplit),"explode_facepa");
+
+       /* BMESH_TODO, (totfsplit * 2) over allocation is used since the quads 
are
+        * later interpreted as tri's, for this to work right I think we 
probably
+        * have to stop using tessface - campbell */
+
+       facepa= MEM_callocN(sizeof(int)*(totface+(totfsplit * 
2)),"explode_facepa");
        //memcpy(facepa,emd->facepa,totface*sizeof(int));
        emd->facepa=facepa;
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to