Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-11 08:25:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-17 14:19:22 +0300
commit366865dd020904116086e6d9ec46b8f70c42cdd1 (patch)
tree3e6cc12c3bf5a64c2ee36378817f0ff0afbdadcc /source/blender/editors/include/ED_text.h
parent9e9fbb39d7f9e0a63c71fbc96237ace62fae0db6 (diff)
Undo System: replace with simpler binary diffing buffer storage
Applying/undoing incremental changes didn't fit well when mixed with periodic snapshots from mem-file undo. This moves to a much simpler undo system. - Uses array storage with de-duplication from `BLI_array_store`. - Loads the buffer into existing text data, for better performance on large files. - Has the advantage that Python operators can be supported since we don't depend on hard coded undo operations. Solves T67045, T66695, T65909.
Diffstat (limited to 'source/blender/editors/include/ED_text.h')
-rw-r--r--source/blender/editors/include/ED_text.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_text.h b/source/blender/editors/include/ED_text.h
index 7638249d49a..ed71439bd37 100644
--- a/source/blender/editors/include/ED_text.h
+++ b/source/blender/editors/include/ED_text.h
@@ -26,7 +26,7 @@
struct ARegion;
struct SpaceText;
-struct TextUndoBuf;
+struct UndoStep;
struct UndoType;
bool ED_text_region_location_from_cursor(struct SpaceText *st,
@@ -37,6 +37,6 @@ bool ED_text_region_location_from_cursor(struct SpaceText *st,
/* text_undo.c */
void ED_text_undosys_type(struct UndoType *ut);
-struct TextUndoBuf *ED_text_undo_push_init(struct bContext *C);
+struct UndoStep *ED_text_undo_push_init(struct bContext *C);
#endif /* __ED_TEXT_H__ */