Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-26 10:04:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-26 10:04:56 +0300
commit35cf545e3a9018650f7b529aececb88072974083 (patch)
treee30a695654f914d6b2263bfacadee343b85fd58c
parente060c90ebc733cfca221a2d6487137ff612d9c37 (diff)
Fix recent c99 cleanup w/ openmp
-rw-r--r--source/blender/blenkernel/intern/pbvh.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index ab377416995..b3cb8fbf3f6 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -954,8 +954,9 @@ static void pbvh_update_normals(PBVH *bvh, PBVHNode **nodes,
* can only update vertices marked with ME_VERT_PBVH_UPDATE.
*/
+ int n;
#pragma omp parallel for private(n) schedule(static) if (totnode > PBVH_OMP_LIMIT)
- for (int n = 0; n < totnode; n++) {
+ for (n = 0; n < totnode; n++) {
PBVHNode *node = nodes[n];
if ((node->flag & PBVH_UpdateNormals)) {
@@ -1004,7 +1005,7 @@ static void pbvh_update_normals(PBVH *bvh, PBVHNode **nodes,
}
#pragma omp parallel for private(n) schedule(static) if (totnode > PBVH_OMP_LIMIT)
- for (int n = 0; n < totnode; n++) {
+ for (n = 0; n < totnode; n++) {
PBVHNode *node = nodes[n];
if (node->flag & PBVH_UpdateNormals) {
@@ -1036,8 +1037,9 @@ static void pbvh_update_normals(PBVH *bvh, PBVHNode **nodes,
void pbvh_update_BB_redraw(PBVH *bvh, PBVHNode **nodes, int totnode, int flag)
{
/* update BB, redraw flag */
+ int n;
#pragma omp parallel for private(n) schedule(static) if (totnode > PBVH_OMP_LIMIT)
- for (int n = 0; n < totnode; n++) {
+ for (n = 0; n < totnode; n++) {
PBVHNode *node = nodes[n];
if ((flag & PBVH_UpdateBB) && (node->flag & PBVH_UpdateBB))