Commit: 5734e0c2f8cdf5411d025b6c3c0a1058965d1bd9
Author: Charlie Jolly
Date: Tue Dec 11 17:43:06 2018 +0000
Branches: greasepencil-object
https://developer.blender.org/rB5734e0c2f8cdf5411d025b6c3c0a1058965d1bd9
GP: Fix box and circle cyclic on preview stroke
===================================================================
M source/blender/editors/gpencil/gpencil_primitive.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c
b/source/blender/editors/gpencil/gpencil_primitive.c
index 381673c8e46..af5632acfe3 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -128,6 +128,9 @@ static void gp_session_validatebuffer(tGPDprimitive *p)
/* reset flags */
gpd->runtime.sbuffer_sflag = 0;
gpd->runtime.sbuffer_sflag |= GP_STROKE_3DSPACE;
+
+ if (ELEM(p->type, GP_STROKE_BOX, GP_STROKE_CIRCLE))
+ gpd->runtime.sbuffer_sflag |= GP_STROKE_CYCLIC;
}
static void gp_init_colors(tGPDprimitive *p)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs