implement load/unload frames
This commit is contained in:
@@ -1611,7 +1611,7 @@ void CanvasModeFloodFill::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
|
||||
struct ActionFloodFill : public Action
|
||||
{
|
||||
std::shared_ptr<Layer> m_layer;
|
||||
std::shared_ptr<Layer::Snapshot> m_snap;
|
||||
std::shared_ptr<LayerFrame::Snapshot> m_snap;
|
||||
std::array<bool, 6> m_dirty_face = SIXPLETTE(false);
|
||||
std::array<glm::vec4, 6> m_dirty_box = SIXPLETTE(glm::vec4(0));
|
||||
glm::ivec2 m_pos;
|
||||
@@ -1670,7 +1670,7 @@ void CanvasModeFloodFill::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
|
||||
auto a = new ActionFloodFill;
|
||||
a->m_direction = Action::Direction::Undo;
|
||||
a->m_layer = plane_data.layer;
|
||||
a->m_snap = std::make_shared<Layer::Snapshot>(plane_data.layer->snapshot());
|
||||
a->m_snap = std::make_shared<LayerFrame::Snapshot>(plane_data.layer->snapshot());
|
||||
a->m_pos = (glm::ivec2)pos;
|
||||
a->m_color = Canvas::I->m_current_brush->m_tip_color;
|
||||
a->m_layer_index = Canvas::I->m_current_layer_idx;
|
||||
|
||||
Reference in New Issue
Block a user