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
|
|
@ -14,11 +14,12 @@ class RectSelectTool {
|
|||
void tool_update();
|
||||
void draw(SkCanvas* canvas, const DrawData& drawData);
|
||||
void reset_tool();
|
||||
|
||||
bool prevent_undo_or_redo();
|
||||
private:
|
||||
struct RectSelectControls {
|
||||
int selectionMode = 0;
|
||||
|
||||
|
||||
CoordSpaceHelper coords;
|
||||
|
||||
Vector2f selectStartAt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue