From aba4e6810f8b4d0e459137b64e061a2cadc457d1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 May 2019 23:21:16 +1000 Subject: Cleanup: style, use braces in source/ (include disabled blocks) --- source/blender/blenkernel/intern/dynamicpaint.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/dynamicpaint.c') diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c index b5242d00ee0..8c6fbe98000 100644 --- a/source/blender/blenkernel/intern/dynamicpaint.c +++ b/source/blender/blenkernel/intern/dynamicpaint.c @@ -3081,8 +3081,9 @@ int dynamicPaint_createUVSurface(Scene *scene, for (int ty = 0; ty < h; ty++) { for (int tx = 0; tx < w; tx++) { const int index = tx + w * ty; - if (tempPoints[index].tri_index != -1) + if (tempPoints[index].tri_index != -1) { tmp[final_index[index]] = index; + } } } for (int ty = 0; ty < h; ty++) { @@ -3193,8 +3194,9 @@ int dynamicPaint_createUVSurface(Scene *scene, pPoint->alpha = 1.0f; /* Every pixel that is assigned as "edge pixel" gets blue color */ - if (uvPoint->neighbour_pixel != -1) + if (uvPoint->neighbour_pixel != -1) { pPoint->color[2] = 1.0f; + } /* and every pixel that finally got an polygon gets red color */ /* green color shows pixel face index hash */ if (uvPoint->tri_index != -1) { -- cgit v1.2.3