Skip to content

Undoing a stroke with "keep drawing on previous key-frame" leads to weird behaviour #1576

@Nel-Fie

Description

@Nel-Fie

Issue Summary

This happens if "Preferences->Timeline->Drawing" is set to "Keep drawing on the previous keyframe".
On a bitmap layer, if you draw a stroke while the timeline is not on a keyed frame, and then undo it, several odd things happen:

Actual Results

  1. A keyframe is generated at the current position in the timeline.
  2. The new keyframe is a duplicate of the previous keyframe, but with the stroke undone
  3. The previous keyframe retains the stroke that was meant to be undone

It might have other consequences with other tools and layer types, I haven't tried.

Expected Results

  1. A new keyframe should not be created.
  2. N/A
  3. The stroke should be undone on the previous keyframe.

Steps to reproduce

The above should be self-explanatory. If not, let me know and I'll provide a step-by-step.

System Information

  • Pencil2D Version: v0.6.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions