diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-27 16:58:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-27 17:04:21 +0300 |
commit | f1c994c555da7c3e27984cc26b7f226badbe670d (patch) | |
tree | a42c43762e56cad6f59f50922ef4c341b5632826 /source/blender/blenloader | |
parent | f6cefbef22c8c6583b4927c179dabac3eb57aa22 (diff) |
Cleanup: move space text vars into a runtime struct
Also use more descriptive names.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9c220e59017..e7a2390b2c4 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -7376,10 +7376,7 @@ static void direct_link_area(FileData *fd, ScrArea *area) } else if (sl->spacetype == SPACE_TEXT) { SpaceText *st = (SpaceText *)sl; - - st->drawcache = NULL; - st->scroll_ofs_px[0] = 0; - st->scroll_ofs_px[1] = 0; + memset(&st->runtime, 0, sizeof(st->runtime)); } else if (sl->spacetype == SPACE_SEQ) { SpaceSeq *sseq = (SpaceSeq *)sl; |