[Bf-blender-cvs] [8286cc8cd4d] blender2.8: Fix crash reading toolsettings

Campbell Barton noreply at git.blender.org
Fri Jun 22 17:22:32 CEST 2018


Commit: 8286cc8cd4d0ebeb142a471751f59a6c41cca60b
Author: Campbell Barton
Date:   Fri Jun 22 17:21:40 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8286cc8cd4d0ebeb142a471751f59a6c41cca60b

Fix crash reading toolsettings

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

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



More information about the Bf-blender-cvs mailing list