Commit: cd7728b3098b6456c17666df5d81901c9fbb7c79
Author: Antonio Vazquez
Date: Sun Jan 31 19:13:46 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rBcd7728b3098b6456c17666df5d81901c9fbb7c79
GPencil: Change color in Multiframe for previous/next frames
Still WIP
===================================================================
M source/blender/blenkernel/intern/gpencil.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil.c
b/source/blender/blenkernel/intern/gpencil.c
index 5c297157556..a4f3202b873 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -2605,7 +2605,15 @@ 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)) {
- gpf->runtime.onion_id = 0;
+ 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;
+ }
if (sta_gpf == NULL) {
sta_gpf = gpf;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs