fix action history with frames
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user