rigidbody: Add point cache support
[blender-staging.git] / source / blender / editors / object / object_edit.c
index fcc3b5d012e9eb761384119f707522838196108e..5e5e38c3e43e1738d9fa55091195a6e6179e52b4 100644 (file)
@@ -376,7 +376,7 @@ void ED_object_exit_editmode(bContext *C, int flag)
                scene->obedit = NULL; // XXX for context
 
                /* flag object caches as outdated */
-               BKE_ptcache_ids_from_object(&pidlist, obedit, NULL, 0);
+               BKE_ptcache_ids_from_object(&pidlist, obedit, scene, 0);
                for (pid = pidlist.first; pid; pid = pid->next) {
                        if (pid->type != PTCACHE_TYPE_PARTICLES) /* particles don't need reset on geometry change */
                                pid->cache->flag |= PTCACHE_OUTDATED;