[Bf-blender-cvs] [759c1672db4] temp-lanpr-cleanup: GPencil: Copy temp color in multiframe

Antonio Vazquez noreply at git.blender.org
Wed Sep 25 03:49:45 CEST 2019


Commit: 759c1672db42e6eb8f6be2cceff6b21188227ff4
Author: Antonio Vazquez
Date:   Fri Sep 20 15:43:56 2019 +0200
Branches: temp-lanpr-cleanup
https://developer.blender.org/rB759c1672db42e6eb8f6be2cceff6b21188227ff4

GPencil: Copy temp color in multiframe

As the evaluated data is not calculated in multiframe, needs to have the original colors.

Related to T70116

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

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 4b32f7fdc0d..4375e9fb3ad 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1180,6 +1180,12 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache,
       continue;
     }
 
+    /* Copy color to temp fields. */
+    if ((is_multiedit) && (gp_style)) {
+      copy_v4_v4(gps->runtime.tmp_stroke_rgba, gp_style->stroke_rgba);
+      copy_v4_v4(gps->runtime.tmp_fill_rgba, gp_style->fill_rgba);
+    }
+
     /* be sure recalc all cache in source stroke to avoid recalculation when frame change
      * and improve fps */
     gpencil_recalc_geometry_caches(



More information about the Bf-blender-cvs mailing list