diff options
author | YimingWu <xp8110@outlook.com> | 2021-03-18 12:48:46 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-18 14:50:55 +0300 |
commit | d39a1e3cab642764b9b42a955a4a411ae65bf0b7 (patch) | |
tree | cd61d609b0f98c8b1edd86eb99a65e7aa5a62ca3 /source/blender/editors/gpencil/gpencil_add_lineart.c | |
parent | c114c78f57458ca88b33c1fcf94f1cf78cd51b9f (diff) |
Fix T86692: Start Line Art GP objects on frame 0
If playback starts before the first GP frame, we will get "ghost"
strokes.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_add_lineart.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_lineart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_add_lineart.c b/source/blender/editors/gpencil/gpencil_add_lineart.c index 71253635ea8..cd996cafa36 100644 --- a/source/blender/editors/gpencil/gpencil_add_lineart.c +++ b/source/blender/editors/gpencil/gpencil_add_lineart.c @@ -111,7 +111,7 @@ void ED_gpencil_create_lineart(bContext *C, Object *ob) bGPDlayer *lines = BKE_gpencil_layer_addnew(gpd, "Lines", true); /* frames */ - BKE_gpencil_frame_addnew(lines, CFRA); + BKE_gpencil_frame_addnew(lines, 0); /* update depsgraph */ /* To trigger modifier update, this is still needed although we don't have any strokes. */ |