[Bf-blender-cvs] [0601c825995] temp-gpencil-fill: GPencil: Use Onion option to attenuate Multiframe

Antonio Vazquez noreply at git.blender.org
Sun Jan 31 19:28:38 CET 2021


Commit: 0601c8259952a2ed874285249af3dccdf3ccad84
Author: Antonio Vazquez
Date:   Sun Jan 31 19:28:35 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rB0601c8259952a2ed874285249af3dccdf3ccad84

GPencil: Use Onion option to attenuate Multiframe

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

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

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

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index a4f3202b873..92c0c8504c4 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -2605,15 +2605,16 @@ void BKE_gpencil_visible_stroke_iter(ViewLayer *view_layer,
       /* Check the whole range and tag the editable frames. */
       LISTBASE_FOREACH (bGPDframe *, gpf, &gpl->frames) {
         if (gpf == act_gpf || (gpf->flag & GP_FRAME_SELECT)) {
-          if (gpf == act_gpf) {
-            gpf->runtime.onion_id = 0;
-          }
-          else if (gpf->framenum < act_gpf->framenum) {
-            gpf->runtime.onion_id = -1;
-          }
-          else {
-            gpf->runtime.onion_id = 1;
+          gpf->runtime.onion_id = 0;
+          if (do_onion) {
+            if (gpf->framenum < act_gpf->framenum) {
+              gpf->runtime.onion_id = -1;
+            }
+            else {
+              gpf->runtime.onion_id = 1;
+            }
           }
+
           if (sta_gpf == NULL) {
             sta_gpf = gpf;
           }



More information about the Bf-blender-cvs mailing list