Fix #37270: Blender crashes in several situations
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Nov 2013 04:24:29 +0000 (04:24 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Nov 2013 04:24:29 +0000 (04:24 +0000)
Issue was caused by cloth modifier used for particle
system dynamic have an invalid error field pointer.
Seems at some point cloth failed to apply and set an
error,

This commit only fixes crash with existing file,
will look further into why exactly such situation
happened,

source/blender/blenloader/intern/readfile.c

index 10c71c79b55f3126b731e69a0ab6d1d67de0e144..c3727c0f6889fbd1937417dfab40061d8b4a69f7 100644 (file)
@@ -3815,6 +3815,7 @@ static void lib_link_particlesystems(FileData *fd, Object *ob, ID *id, ListBase
                                psys->clmd->point_cache = psys->pointcache;
                                psys->clmd->ptcaches.first = psys->clmd->ptcaches.last= NULL;
                                psys->clmd->coll_parms->group = newlibadr(fd, id->lib, psys->clmd->coll_parms->group);
+                               psys->clmd->modifier.error = NULL;
                        }
                }
                else {