[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35064] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fixed crash when sculpting on deformed mesh with smooth brush:
Sergey Sharybin
g.ulairi at gmail.com
Tue Feb 22 11:56:50 CET 2011
Revision: 35064
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35064
Author: nazgul
Date: 2011-02-22 10:56:49 +0000 (Tue, 22 Feb 2011)
Log Message:
-----------
Fixed crash when sculpting on deformed mesh with smooth brush:
vertex iter should be declared inside omp block or it'll be
thread-unsafe otherwise.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2011-02-22 10:33:14 UTC (rev 35063)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2011-02-22 10:56:49 UTC (rev 35064)
@@ -2469,12 +2469,12 @@
int n, totnode;
PBVHNode** nodes;
- PBVHVertexIter vd;
BLI_pbvh_search_gather(ss->pbvh, NULL, NULL, &nodes, &totnode);
#pragma omp parallel for schedule(guided) if (sd->flags & SCULPT_USE_OPENMP)
for (n= 0; n < totnode; n++) {
+ PBVHVertexIter vd;
BLI_pbvh_vertex_iter_begin(ss->pbvh, nodes[n], vd, PBVH_ITER_UNIQUE) {
sculpt_flush_pbvhvert_deform(ss, &vd);
More information about the Bf-blender-cvs
mailing list