diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-10-10 17:06:49 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-10-10 17:06:49 +0300 |
commit | 029a6c2383f5e4a04585c39bde2e87b92b66f961 (patch) | |
tree | 3f4193ae605742e0240473e86fa3aa434bcc044d /source/blender/editors/transform/transform_conversions.c | |
parent | b81f3246f8dfa52c6bf32d286c11a1360e8871b1 (diff) |
Fix: The "transform strokes on unkeyed frame creates new frame" feature didn't work on the first frame
As a convenience feature, it is possible to jump to a frame without any existing
GP keyframe, and just use the transform tools to modify the stroke to create a new
keyframe on that frame. However, if the current frame was before the first GP keyframe,
the newly created keyframe would not work (if you scrub away), as it was getting
incorrectly added at the end of the list of keyframes, instead of in-order as expected.
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index c12418f1a0f..ca735cb9ea4 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -7739,7 +7739,7 @@ static void createTransGPencil(bContext *C, TransInfo *t) bool found = false; /* Find frame to insert it before */ - for (gf = gpf->next; gf; gf = gf->next) { + for (gf = gpl->frames.first; gf; gf = gf->next) { if (gf->framenum > cfra) { /* Add it here */ BLI_insertlinkbefore(&gpl->frames, gf, new_frame); |