diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 15:43:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 15:43:35 +0300 |
commit | 753a600e354f21618e24e9071ef5d88f1913fcd8 (patch) | |
tree | 1e05ca245590ff9a6cf7523a6f3fba46de25327c /source/blender/blenlib | |
parent | 9a5fb0209e6e94112be4d390316933ab84e8e2df (diff) |
PyAPI: add undo redo handlers
Useful so Python can clean up before/after undo steps.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_callbacks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_callbacks.h b/source/blender/blenlib/BLI_callbacks.h index 6eb45107488..3db7d2d87f1 100644 --- a/source/blender/blenlib/BLI_callbacks.h +++ b/source/blender/blenlib/BLI_callbacks.h @@ -49,6 +49,10 @@ typedef enum { BLI_CB_EVT_LOAD_POST, BLI_CB_EVT_SAVE_PRE, BLI_CB_EVT_SAVE_POST, + BLI_CB_EVT_UNDO_PRE, + BLI_CB_EVT_UNDO_POST, + BLI_CB_EVT_REDO_PRE, + BLI_CB_EVT_REDO_POST, BLI_CB_EVT_SCENE_UPDATE_PRE, BLI_CB_EVT_SCENE_UPDATE_POST, BLI_CB_EVT_GAME_PRE, |