Revision: 14959
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14959
Author:   genscher
Date:     2008-05-25 16:34:03 +0200 (Sun, 25 May 2008)

Log Message:
-----------
-== kdop ==-
1. fix crash on collision

Modified Paths:
--------------
    branches/cloth/blender/source/blender/blenlib/intern/BLI_kdopbvh.c

Modified: branches/cloth/blender/source/blender/blenlib/intern/BLI_kdopbvh.c
===================================================================
--- branches/cloth/blender/source/blender/blenlib/intern/BLI_kdopbvh.c  
2008-05-25 14:32:59 UTC (rev 14958)
+++ branches/cloth/blender/source/blender/blenlib/intern/BLI_kdopbvh.c  
2008-05-25 14:34:03 UTC (rev 14959)
@@ -719,7 +719,7 @@
        if(!tree_overlap(tree1->nodes[tree1->totleaf]->bv, 
tree2->nodes[tree2->totleaf]->bv, MIN2(tree1->start_axis, tree2->start_axis), 
MIN2(tree1->stop_axis, tree2->stop_axis)))
                return 0;
 
-       *data = MEM_callocN(sizeof(BVHOverlapData *)* tree1->tree_type, 
"BVHOverlapData_star");
+       data = MEM_callocN(sizeof(BVHOverlapData *)* tree1->tree_type, 
"BVHOverlapData_star");
        
        for(j = 0; j < tree1->tree_type; j++)
        {
@@ -755,7 +755,7 @@
                free(data[j]->overlap);
                MEM_freeN(data[j]);
        }
-       MEM_freeN(*data);
+       MEM_freeN(data);
        
        (*result) = total;
        return overlap;


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

Reply via email to