Softbody now uses the new pointcache code.

Note: Rna access to softbody point cache is through softbody modifier although the point cache is in softbody settings. This is to make it similar to cloth.

Bugfix: Softbody rna was trying to get "ob->soft->softflag" instead of the correct "ob->softflag".
This commit is contained in:
2009-08-02 19:39:33 +00:00
parent 7b123ff13c
commit dc75023f6f
8 changed files with 283 additions and 85 deletions

View File

@@ -1160,7 +1160,7 @@ void load_editMesh(Scene *scene, Object *ob)
if(pid.type == PTCACHE_TYPE_CLOTH)
cloth_write_cache(ob, pid.data, pid.cache->editframe);
else if(pid.type == PTCACHE_TYPE_SOFTBODY)
sbWriteCache(ob, pid.cache->editframe);
softbody_write_cache(ob, pid.data, pid.cache->editframe);
}
/* the edges */