Fix crash reading toolsettings

This commit is contained in:
Campbell Barton 2018-06-22 17:21:40 +02:00
parent bf0dc7ee19
commit 8286cc8cd4
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}