BGE patch: create new BulletSoftBody data block to store bullet soft body specific...
[blender.git] / source / blender / blenloader / intern / readfile.c
index 5692627281de98f9a52e0fffeabe9a582d78a88c..0999c8b0ce3e415afc7b9aa95af3e57cad099181 100644 (file)
 #include "BKE_sca.h" // for init_actuator
 #include "BKE_scene.h"
 #include "BKE_softbody.h"      // sbNew()
+#include "BKE_bullet.h"                // bsbNew()
 #include "BKE_sculpt.h"
 #include "BKE_texture.h" // for open_plugin_tex
 #include "BKE_utildefines.h" // SWITCH_INT DATA ENDB DNA1 O_BINARY GLOB USER TEST REND
@@ -3334,6 +3335,7 @@ static void direct_link_object(FileData *fd, Object *ob)
                if(sb->pointcache)
                        direct_link_pointcache(fd, sb->pointcache);
        }
+       ob->bsoft= newdataadr(fd, ob->bsoft);
        ob->fluidsimSettings= newdataadr(fd, ob->fluidsimSettings); /* NT */
 
        link_list(fd, &ob->particlesystem);