File indexing completed on 2024-12-22 04:10:04

0001 /*
0002  *  SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "KisResetGroupLayerCacheCommand.h"
0008 
0009 #include "kis_group_layer.h"
0010 
0011 KisResetGroupLayerCacheCommand::KisResetGroupLayerCacheCommand(KisGroupLayerSP layer, const KoColorSpace *dstColorSpace, KisCommandUtils::FlipFlopCommand::State state)
0012     : KisCommandUtils::FlipFlopCommand(state)
0013     , m_layer(layer)
0014     , m_dstColorSpace(dstColorSpace)
0015 {
0016 }
0017 
0018 void KisResetGroupLayerCacheCommand::partB()
0019 {
0020     m_layer->resetCache(m_dstColorSpace);
0021 }