[Bf-blender-cvs] [d244a66175e] lanpr-under-gp: LineArt: make format

YimingWu noreply at git.blender.org
Mon Oct 19 06:56:29 CEST 2020


Commit: d244a66175ef31e8efe8c5829daaf2ebcfc944e9
Author: YimingWu
Date:   Mon Oct 19 12:56:11 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBd244a66175ef31e8efe8c5829daaf2ebcfc944e9

LineArt: make format

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

M	source/blender/editors/lineart/lineart_intern.h
M	source/blender/editors/lineart/lineart_ops.c
M	source/blender/editors/lineart/lineart_util.c

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

diff --git a/source/blender/editors/lineart/lineart_intern.h b/source/blender/editors/lineart/lineart_intern.h
index dcc4eba2f11..eaf51fd4b49 100644
--- a/source/blender/editors/lineart/lineart_intern.h
+++ b/source/blender/editors/lineart/lineart_intern.h
@@ -70,7 +70,6 @@ void lineart_matrix_perspective_44d(
 
 int lineart_count_intersection_segment_count(struct LineartRenderBuffer *rb);
 
-
-void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer* rb);
+void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb);
 
 #endif
diff --git a/source/blender/editors/lineart/lineart_ops.c b/source/blender/editors/lineart/lineart_ops.c
index e16691bf5b5..2bc3d2680c2 100644
--- a/source/blender/editors/lineart/lineart_ops.c
+++ b/source/blender/editors/lineart/lineart_ops.c
@@ -36,4 +36,3 @@ void ED_operatortypes_lineart(void)
   WM_operatortype_append(SCENE_OT_lineart_update_strokes);
   WM_operatortype_append(SCENE_OT_lineart_bake_strokes);
 }
-
diff --git a/source/blender/editors/lineart/lineart_util.c b/source/blender/editors/lineart/lineart_util.c
index d3ae4c771fa..a2b839acdea 100644
--- a/source/blender/editors/lineart/lineart_util.c
+++ b/source/blender/editors/lineart/lineart_util.c
@@ -183,35 +183,36 @@ void lineart_matrix_ortho_44d(double (*mProjection)[4],
   mProjection[3][3] = 1.0f;
 }
 
-void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer* rb){
-  int i=0;
+void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb)
+{
+  int i = 0;
   size_t total = 0;
   size_t sum_this = 0;
   size_t count_this = 0;
 
-  LISTBASE_FOREACH(LineartStaticMemPoolNode *, smpn, &rb->render_data_pool.pools){
+  LISTBASE_FOREACH (LineartStaticMemPoolNode *, smpn, &rb->render_data_pool.pools) {
     count_this++;
-    sum_this+=LRT_MEMORY_POOL_64MB;
+    sum_this += LRT_MEMORY_POOL_64MB;
   }
-  printf("LANPR Memory allocated %lu Standalone nodes, total %lu Bytes.\n",count_this,sum_this);
+  printf("LANPR Memory allocated %lu Standalone nodes, total %lu Bytes.\n", count_this, sum_this);
   total += sum_this;
   sum_this = 0;
   count_this = 0;
 
-  LISTBASE_FOREACH(LineartRenderElementLinkNode *, reln, &rb->line_buffer_pointers){
+  LISTBASE_FOREACH (LineartRenderElementLinkNode *, reln, &rb->line_buffer_pointers) {
     count_this++;
-    sum_this+=reln->element_count*sizeof(LineartRenderLine);
+    sum_this += reln->element_count * sizeof(LineartRenderLine);
   }
-  printf("             allocated %lu edge blocks, total %lu Bytes.\n",count_this,sum_this);
+  printf("             allocated %lu edge blocks, total %lu Bytes.\n", count_this, sum_this);
   total += sum_this;
   sum_this = 0;
   count_this = 0;
 
-  LISTBASE_FOREACH(LineartRenderElementLinkNode *, reln, &rb->triangle_buffer_pointers){
+  LISTBASE_FOREACH (LineartRenderElementLinkNode *, reln, &rb->triangle_buffer_pointers) {
     count_this++;
-    sum_this+=reln->element_count*rb->triangle_size;
+    sum_this += reln->element_count * rb->triangle_size;
   }
-  printf("             allocated %lu triangle blocks, total %lu Bytes.\n",count_this,sum_this);
+  printf("             allocated %lu triangle blocks, total %lu Bytes.\n", count_this, sum_this);
   total += sum_this;
   sum_this = 0;
   count_this = 0;



More information about the Bf-blender-cvs mailing list