[Bf-blender-cvs] [ce3447c0642] lanpr-under-gp: LineArt: Random color debug for generated strokes.

YimingWu noreply at git.blender.org
Fri Jul 24 15:42:01 CEST 2020


Commit: ce3447c06423806ea37231f12d3dbb025a264be9
Author: YimingWu
Date:   Fri Jul 24 21:41:47 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBce3447c06423806ea37231f12d3dbb025a264be9

LineArt: Random color debug for generated strokes.

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

M	source/blender/editors/lineart/lineart_cpu.c

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

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index d5b3f8847c2..cf45a6d0e2a 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -3704,6 +3704,9 @@ void ED_lineart_gpencil_generate_from_chain(Depsgraph *depsgraph,
 
     BKE_gpencil_stroke_add_points(gps, stroke_data, count, mat);
     gps->mat_nr = material_nr;
+    if (G.debug_value == 4000) {
+      BKE_gpencil_stroke_set_random_color(gps);
+    }
     BKE_gpencil_stroke_geometry_update(gps);
     MEM_freeN(stroke_data);
   }



More information about the Bf-blender-cvs mailing list