Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
BUGFIX: Static opacity changes now properly clear animation cache.
Emmet O'Neillb7ed819bee73
diff --git a/libs/image/commands/kis_node_opacity_command.cpp b/libs/image/commands/kis_node_opacity_command.cppindex 3a1cc066cf..c7fbebc3af 100644--- a/libs/image/commands/kis_node_opacity_command.cpp+++ b/libs/image/commands/kis_node_opacity_command.cpp@@ -14,6 +14,7 @@#include "kis_image.h"#include "kis_image_animation_interface.h"#include "kis_scalar_keyframe_channel.h"+#include "kis_time_span.h"using namespace KisCommandUtils;@@ -47,6 +48,11 @@ void KisNodeOpacityCommand::redo()m_node->setOpacity(m_newOpacity);m_node->setDirty();++ // BUG:499389 workaround.+ // Unlike drawing, non-animated opacity changes need to be recached across all raster frames.+ // It's probably better to change KisNode::setDirty, KisImage::requestProjectionUpdate, and/or KisProjectionUpdateFlags.+ m_node->invalidateFrames(KisTimeSpan::infinite(0), QRect());}void KisNodeOpacityCommand::undo()