fix action history with frames

This commit is contained in:
2019-10-19 16:06:43 +02:00
parent aa41703df5
commit e25de3c454
8 changed files with 121 additions and 80 deletions

View File

@@ -11,6 +11,7 @@ public:
glm::ivec4 m_box[6] = SIXPLETTE(glm::ivec4(0));
bool clear_layer = false;
int m_layer_idx = 0;
int m_frame_idx = 0;
class Canvas* m_canvas;
virtual ~ActionStroke() = default;
virtual void run() override { }
@@ -23,6 +24,7 @@ struct ActionLayerClear : public Action
{
std::shared_ptr<Layer::Snapshot> m_snap;
std::shared_ptr<Layer> m_layer;
int m_frame = 0;
glm::vec4 m_color;
virtual void run() override { }
virtual size_t memory() override { return m_snap->memsize(); }
@@ -34,6 +36,7 @@ struct ActionImportEquirect : public Action
{
std::shared_ptr<Layer::Snapshot> m_snap;
std::shared_ptr<Layer> m_layer;
int m_frame = 0;
std::string m_path;
virtual void run() override { }
virtual size_t memory() override { return m_snap->memsize(); }