Bugfix: Crash when changing collider type after loading blend file.

Thanks to MiikaH for pointing out.
This commit is contained in:
Daniel Genrich
2012-08-06 11:55:52 +00:00
parent 54b61401ed
commit 4c4973350e

View File

@@ -4399,6 +4399,7 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
smd->flow = NULL;
smd->domain = NULL;
smd->coll = newdataadr(fd, smd->coll);
smd->coll->smd = smd;
if (smd->coll) {
smd->coll->points = NULL;
smd->coll->numpoints = 0;