REmove stupid apple check on OMP in weightvg modifier.

This is handled in build files...
This commit is contained in:
Bastien Montagne
2015-07-10 09:55:01 +02:00
parent a8b8d60c50
commit bbcbd2eed9

View File

@@ -109,12 +109,8 @@ static void get_vert2geom_distance(int numVerts, float (*v_cos)[3],
nearest_v.index = nearest_e.index = nearest_f.index = -1;
/*nearest_v.dist = nearest_e.dist = nearest_f.dist = FLT_MAX;*/
/* Find the nearest vert/edge/face. */
#ifndef __APPLE__
#pragma omp parallel for default(none) private(i) firstprivate(nearest_v, nearest_e, nearest_f) \
shared(treeData_v, treeData_e, treeData_f, numVerts, v_cos, dist_v, dist_e, \
dist_f, loc2trgt) \
schedule(static)
#endif
#pragma omp parallel for default(shared) private(i) firstprivate(nearest_v, nearest_e, nearest_f) \
schedule(static) if (numVerts > 10000)
for (i = 0; i < numVerts; i++) {
float tmp_co[3];