[Bf-blender-cvs] [abc2263] compositor-2016: Hopefully fix OMP/MSVC crap...

Bastien Montagne noreply at git.blender.org
Wed Jun 8 21:48:40 CEST 2016


Commit: abc22632d33f70cb1bdcf52d6a6104aad40b02d3
Author: Bastien Montagne
Date:   Sat May 21 00:54:37 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBabc22632d33f70cb1bdcf52d6a6104aad40b02d3

Hopefully fix OMP/MSVC crap...

===================================================================

M	source/blender/blenkernel/intern/dynamicpaint.c

===================================================================

diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c
index daf1e86..8af9750 100644
--- a/source/blender/blenkernel/intern/dynamicpaint.c
+++ b/source/blender/blenkernel/intern/dynamicpaint.c
@@ -2261,9 +2261,11 @@ int dynamicPaint_createUVSurface(Scene *scene, DynamicPaintSurface *surface)
 		}
 
 		/* Loop through every pixel and check if pixel is uv-mapped on a canvas face. */
+		int ty;
 #pragma omp parallel for schedule(static)
-		for (int ty = 0; ty < h; ty++) {
-			for (int tx = 0; tx < w; tx++) {
+		for (ty = 0; ty < h; ty++) {
+			int tx;
+			for (tx = 0; tx < w; tx++) {
 				const int index = tx + w * ty;
 				PaintUVPoint *tPoint = &tempPoints[index];
 				float point[5][2];
@@ -2347,8 +2349,9 @@ int dynamicPaint_createUVSurface(Scene *scene, DynamicPaintSurface *surface)
 		 *	(To avoid seams on uv island edges)
 		 */
 #pragma omp parallel for schedule(static)
-		for (int ty = 0; ty < h; ty++) {
-			for (int tx = 0; tx < w; tx++) {
+		for (ty = 0; ty < h; ty++) {
+			int tx;
+			for (tx = 0; tx < w; tx++) {
 				const int index = tx + w * ty;
 				PaintUVPoint *tPoint = &tempPoints[index];
 
@@ -2438,7 +2441,7 @@ int dynamicPaint_createUVSurface(Scene *scene, DynamicPaintSurface *surface)
 			if (sData->adj_data) {
 				PaintAdjData *ed = sData->adj_data;
 				unsigned int n_pos = 0;
-				for (int ty = 0; ty < h; ty++) {
+				for (ty = 0; ty < h; ty++) {
 					for (int tx = 0; tx < w; tx++) {
 						const int index = tx + w * ty;




More information about the Bf-blender-cvs mailing list