<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>474138</bug_id>
          
          <creation_ts>2023-09-04 13:29:49 +0000</creation_ts>
          <short_desc>Onion skins are not updated properly when auto-keyframe mode is on</short_desc>
          <delta_ts>2023-09-07 11:18:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Animation</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression, release_blocker</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry Kazakov">dimula73</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/5e4b1ab10d1afebff61487e1916f93ee818eec64</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2250489</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-04 13:29:49 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
0. Enable Onion Skins for the layer
1. Enable auto-keyframe feature (any mode)
2. Draw a set of sequential frames. One smaller than the previous.
3. The updates become incorrect with time and the &quot;older&quot; skins will not be updated anymore.

Screenshot: https://pasteboard.co/YuMlWojXgKuS.png

The bug might be related to https://bugs.kde.org/show_bug.cgi?id=473288, but I&apos;m not very sure, because the reporter in 473288 experience persistent corruption of the layer data, not temporary like in this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2251192</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-09-06 16:16:51 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1932</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2251366</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-07 10:48:42 +0000</bug_when>
    <thetext>Git commit 0b2804491a75f0414f1e3aa386c6fa92daf2f45c by Dmitry Kazakov.
Committed on 07/09/2023 at 12:46.
Pushed by dkazakov into branch &apos;krita/5.2&apos;.

Fix updates on autokeyframing with onion skins enabled

When we create a new frame, we may change a set of onion skins
that should be displayed on screen. Therefore, we should issue
a set of specific updates for such a case.

The patch adds a set of more granular signals to KisKeyframeChannel,
so that the addition and removal of the keyframes can be tracked
properly.

The patch also fixes the issue with sigRemovingKeyframe() being
emitted **after** the frame was actually removed from the raster
channel.

M  +21   -15   libs/image/kis_keyframe_channel.cpp
M  +21   -8    libs/image/kis_keyframe_channel.h
M  +22   -4    libs/image/kis_node.cpp
M  +6    -1    libs/image/kis_node.h
M  +101  -2    libs/image/kis_onion_skin_compositor.cpp
M  +3    -0    libs/image/kis_onion_skin_compositor.h
M  +67   -5    libs/image/kis_paint_layer.cc
M  +4    -0    libs/image/kis_paint_layer.h
M  +3    -1    libs/image/kis_raster_keyframe_channel.cpp
M  +0    -18   libs/image/kis_scalar_keyframe_channel.cpp
M  +0    -3    libs/image/kis_scalar_keyframe_channel.h
M  +1    -1    libs/image/tests/kis_keyframing_test.cpp
M  +1    -1    plugins/dockers/animation/timeline_node_list_keeper.cpp
M  +1    -1    plugins/tools/tool_transform2/kis_animated_transform_parameters.cpp

https://invent.kde.org/graphics/krita/-/commit/0b2804491a75f0414f1e3aa386c6fa92daf2f45c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2251373</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-07 11:18:45 +0000</bug_when>
    <thetext>Git commit 5e4b1ab10d1afebff61487e1916f93ee818eec64 by Dmitry Kazakov.
Committed on 07/09/2023 at 12:53.
Pushed by dkazakov into branch &apos;master&apos;.

Fix updates on autokeyframing with onion skins enabled

When we create a new frame, we may change a set of onion skins
that should be displayed on screen. Therefore, we should issue
a set of specific updates for such a case.

The patch adds a set of more granular signals to KisKeyframeChannel,
so that the addition and removal of the keyframes can be tracked
properly.

The patch also fixes the issue with sigRemovingKeyframe() being
emitted **after** the frame was actually removed from the raster
channel.

M  +21   -15   libs/image/kis_keyframe_channel.cpp
M  +21   -8    libs/image/kis_keyframe_channel.h
M  +22   -4    libs/image/kis_node.cpp
M  +6    -1    libs/image/kis_node.h
M  +101  -2    libs/image/kis_onion_skin_compositor.cpp
M  +3    -0    libs/image/kis_onion_skin_compositor.h
M  +67   -5    libs/image/kis_paint_layer.cc
M  +4    -0    libs/image/kis_paint_layer.h
M  +3    -1    libs/image/kis_raster_keyframe_channel.cpp
M  +0    -18   libs/image/kis_scalar_keyframe_channel.cpp
M  +0    -3    libs/image/kis_scalar_keyframe_channel.h
M  +1    -1    libs/image/tests/kis_keyframing_test.cpp
M  +1    -1    plugins/dockers/animation/timeline_node_list_keeper.cpp
M  +1    -1    plugins/tools/tool_transform2/kis_animated_transform_parameters.cpp

https://invent.kde.org/graphics/krita/-/commit/5e4b1ab10d1afebff61487e1916f93ee818eec64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>