Prevent undo and redo at points when they might break the program
This commit is contained in:
parent
f606fc6fc1
commit
2de5c90006
21 changed files with 79 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ class EditTool {
|
|||
void draw(SkCanvas* canvas, const DrawData& drawData);
|
||||
void add_point_handle(const HandleData& handle);
|
||||
void edit_start(const std::shared_ptr<DrawComponent>& comp);
|
||||
bool prevent_undo_or_redo();
|
||||
|
||||
struct EditControls {
|
||||
std::vector<HandleData> pointHandles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue