[Bf-blender-cvs] [a86cbbfa51f] soc-2019-npr: LANPR: Apply clang format

Antonioya noreply at git.blender.org
Mon Jun 24 10:48:49 CEST 2019


Commit: a86cbbfa51f7cb15da677eafb0dc0190c95c4377
Author: Antonioya
Date:   Mon Jun 24 10:48:41 2019 +0200
Branches: soc-2019-npr
https://developer.blender.org/rBa86cbbfa51f7cb15da677eafb0dc0190c95c4377

LANPR: Apply clang format

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

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

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

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 83ed203c109..40567ce7b9b 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1444,23 +1444,23 @@ static int stroke_march_next_point(bGPDstroke *gps,
     return -1;
 
   copy_v3_v3(step_start, current);
-  copy_v3_v3(point,&gps->points[next_point_index]);
+  copy_v3_v3(point, &gps->points[next_point_index]);
   remaining_till_next = len_v3v3(point, step_start);
 
   while (remaining_till_next < remaining_march) {
     remaining_march -= remaining_till_next;
-    copy_v3_v3(point,&gps->points[next_point_index]);
+    copy_v3_v3(point, &gps->points[next_point_index]);
     copy_v3_v3(step_start, point);
     next_point_index++;
     if (!(next_point_index < gps->totpoints)) {
       next_point_index = gps->totpoints - 1;
       break;
     }
-    copy_v3_v3(point,&gps->points[next_point_index]);
+    copy_v3_v3(point, &gps->points[next_point_index]);
     remaining_till_next = len_v3v3(point, step_start);
   }
   if (remaining_till_next < remaining_march) {
-    copy_v3_v3(result,&gps->points[next_point_index]);
+    copy_v3_v3(result, &gps->points[next_point_index]);
     *pressure = gps->points[next_point_index].pressure;
     *strength = gps->points[next_point_index].strength;
     return 0;
@@ -1495,9 +1495,9 @@ bool BKE_gpencil_sample_stroke(bGPDstroke *gps, float dist)
 
   float length = 0.0f;
   float last_coord[3], this_coord[3];
-  copy_v3_v3(last_coord,&pt[0]);
+  copy_v3_v3(last_coord, &pt[0]);
   for (i = 1; i < gps->totpoints; i++) {
-    copy_v3_v3(this_coord,&pt[i]);
+    copy_v3_v3(this_coord, &pt[i]);
     length += len_v3v3(last_coord, this_coord);
   }
 
@@ -1508,15 +1508,15 @@ bool BKE_gpencil_sample_stroke(bGPDstroke *gps, float dist)
   int next_point_index = 1;
   i = 0;
   float pressure, strength;
-  copy_v3_v3(last_coord,&pt[0]);
+  copy_v3_v3(last_coord, &pt[0]);
   // 1st point
-  copy_v3_v3(&new_pt[i],last_coord);
+  copy_v3_v3(&new_pt[i], last_coord);
   new_pt[i].pressure = pt[0].pressure;
   new_pt[i].strength = pt[0].strength;
   i++;
   while ((next_point_index = stroke_march_next_point(
               gps, next_point_index, last_coord, dist, last_coord, &pressure, &strength)) > -1) {
-    copy_v3_v3(&new_pt[i],last_coord);
+    copy_v3_v3(&new_pt[i], last_coord);
     new_pt[i].pressure = pressure;
     new_pt[i].strength = strength;
     i++;



More information about the Bf-blender-cvs mailing list