pencil icon indicating copy to clipboard operation
pencil copied to clipboard

[BUG] when using Shortcut key and OnionSkin

Open Kaikogf opened this issue 3 years ago • 3 comments

Issue Summary

• Open Pencil2D with its default shortcuts on PreferencePanel • Select Bitmap layer and the PencilTool • Draw 1 in the first frame, 2 in the second frame, 3 in the third frame, 4 in the forth frame. • Use the DEFAULT shortcut keys for moving frames (CTRL+, for backward and CTRL+. for forward) NOTE: Using only “,” and “.” it also work for the frames. So, and here a doubt, why it is then necessary to have the CTRL key added to those keys? NOTE: When using the shortcut key without pressing CTRL key, the bug is not triggered and the correct action is executed.

• As long as I do not active PreviousOnionSkin everything is going to work ok. Otherwise, when playing with onion skin AND with the default shortcut key, the bug appeared. And for some random situation, all of the sudden some frames changed position at the end. In another occasion one drawing disappear and two frames ended up duplicated. In this case the frames were shifted one frame, frame1 went to frame4...

System Information

  • Pencil2D Version: Built the last code from 11thSet

  • Operating System: Win 10

  • Graphics Tablet: HUION

0000-2778

Kaikogf avatar Sep 13 '20 02:09 Kaikogf

Thanks for reporting

I tried just now in our latest master and wasn't able to reproduce the bug, it would also be weird that either of those shortcuts would trigger such a bug, since all they do is to scrub to a frame. The "," and "." shortcut will scrub to next frame, regardless if there's a keyframe or not where as ctrl+"," and ctrl+"." will only scrub to keyframes.

Can you still reproduce the problem and if so, is the bug permanent or just visual? will the frames be shown correctly after re-opening the project?

MrStevns avatar Nov 11 '20 06:11 MrStevns

[testing with the last code from Github 16Nov2020 Windows10 pro HUION tablet]

@CandyFace Now its behaviour changed from a bit weird to a bit weird+... LOL Here some text to follow the GIF

  • Here I am moving along the frames by using the default shortcut keys CTRL “.”/”,”
  • I am just moving across these 5 frames and not going beyond them.

First BUG:

  • I stopped in a random frame (#2) and hit Previous Onionskin: While the scrub on the timeline remained on frame #2 the canvas showed the content of frame #5 instead and also onion skin of frame #1

BUG:

  • Instead of selecting Previous Onionskin to trigger this same bug, just hit the canvas. Same result

BUG (?):

  • If continuing with this position and moving the scrub along the frames using the shortcut key [CTRL ,/.], the scrub will grab the frame under it. But when using only “,” “.” this does not happen.

It is not a visual problem @CandyFace. It is permanent and will load the project with these anomalies Sometimes frames change spots...

Pencil2D-Development-Build-Nov-16-2020-Pencil2D-2020-11-17-19-36-38

Kaikogf avatar Nov 17 '20 20:11 Kaikogf

Ah let me clarify: Ctrl+',' and Ctrl+'.' will indeed move the keyframe which is under the scrubber and that is the intended behavior, I made a mistake in my last comment and mixed the shortcut up for moving a keyframe with scrubbing between keyframes: alt+',' and alt+'.' , and . will not move keyframes, only scrub, that is why there's a difference and why you experience different results.

As for the bug, I haven't been able to reproduce it myself, the content may look incorrect but re-opening the project fixes the problem, as such I have only been able to reproduce a cosmetic bug.

MrStevns avatar Nov 21 '20 11:11 MrStevns