diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-05-06 13:22:25 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-05-06 13:22:25 +0300 |
commit | 6fdbe25094a4ac64922a7509ed8cc3687fd1959f (patch) | |
tree | e3e5b61733e0d15fd17a0b0f5bd64f94a3c16c01 /source/blender | |
parent | 09603401cab59bfbaffe4779f7ad95682f6b62f5 (diff) | |
parent | c98240139e8ebfb5abdcc3734cbd5248cf313644 (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_interpolate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c index b6e84205815..5cb49600d05 100644 --- a/source/blender/editors/gpencil/gpencil_interpolate.c +++ b/source/blender/editors/gpencil/gpencil_interpolate.c @@ -970,12 +970,16 @@ static int gpencil_interpolate_seq_exec(bContext *C, wmOperator *op) bGPDstroke *gps_from, *gps_to; int cframe, fFrame; + /* Need a set of frames to interpolate. */ + if ((gpl->actframe == NULL) || (gpl->actframe->next == NULL)) { + continue; + } /* all layers or only active */ if (((flag & GP_TOOLFLAG_INTERPOLATE_ALL_LAYERS) == 0) && (gpl != active_gpl)) { continue; } /* only editable and visible layers are considered */ - if (!BKE_gpencil_layer_is_editable(gpl) || (gpl->actframe == NULL)) { + if (!BKE_gpencil_layer_is_editable(gpl)) { continue; } |