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>2018-04-05 16:22:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-05 16:22:33 +0300
commitad1ea9a427e3543a43ca2589f87f0c94b9be03ca (patch)
tree267fcc16524cd1336d2a55d08a497025a552d825 /source/blender/blenloader/intern/readfile.c
parent79c3c5689416014afd4fe417fac404c34b7a6cf0 (diff)
Undo: split text undo steps out of the data-block
This moves undo storage into a separate struct which is passed in from the undo system.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 2b053b3fb45..a4739240cb4 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -3712,15 +3712,11 @@ static void lib_link_text(FileData *fd, Main *main)
static void direct_link_text(FileData *fd, Text *text)
{
TextLine *ln;
-
+
text->name = newdataadr(fd, text->name);
-
- text->undo_pos = -1;
- text->undo_len = TXT_INIT_UNDO;
- text->undo_buf = MEM_mallocN(text->undo_len, "undo buf");
-
+
text->compiled = NULL;
-
+
#if 0
if (text->flags & TXT_ISEXT) {
BKE_text_reload(text);