Revision: 28547
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28547
Author:   joeedh
Date:     2010-05-03 17:36:47 +0200 (Mon, 03 May 2010)

Log Message:
-----------
{forgot this file, added a sanity check.} don't allow modifiers (e.g. cloth) 
after multires if in sculpt mode; should fix 22021.  more work is needed, since 
while it doesn't crash anymore, you also can't sculpt without manually 
disabling the modifiers.

Modified Paths:
--------------
    branches/render25/source/blender/blenlib/intern/pbvh.c

Modified: branches/render25/source/blender/blenlib/intern/pbvh.c
===================================================================
--- branches/render25/source/blender/blenlib/intern/pbvh.c      2010-05-03 
15:36:17 UTC (rev 28546)
+++ branches/render25/source/blender/blenlib/intern/pbvh.c      2010-05-03 
15:36:47 UTC (rev 28547)
@@ -1214,6 +1214,8 @@
 
                for(i = 0; i < totgrid; ++i) {
                        DMGridData *grid= bvh->grids[node->prim_indices[i]];
+                       if (!grid)
+                               continue;
 
                        for(y = 0; y < gridsize-1; ++y) {
                                for(x = 0; x < gridsize-1; ++x) {


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

Reply via email to