diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-22 18:21:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-22 18:22:06 +0300 |
commit | 8286cc8cd4d0ebeb142a471751f59a6c41cca60b (patch) | |
tree | 2cabf16a101097e00e064a5ebffb6b13bc3c13b8 /source | |
parent | bf0dc7ee19a1bb52e9f1061c4224eb23c13b49f6 (diff) |
Fix crash reading toolsettings
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 37debb68ea8..a169dc82d1f 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2944,6 +2944,7 @@ static void direct_link_workspace(FileData *fd, WorkSpace *workspace, const Main for (bToolRef *tref = workspace->tools.first; tref; tref = tref->next) { tref->runtime = NULL; tref->properties = newdataadr(fd, tref->properties); + IDP_DirectLinkGroup_OrFree(&tref->properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); } } |