diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-09-25 02:58:49 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-09-25 02:58:49 +0400 |
commit | 38a80ff9a5c6d7bebef42bc3b8320d781b4e4f1c (patch) | |
tree | 325f16aebffa126c36f2377cb32c5dc8fd3f533b /source/blender/blenloader/intern | |
parent | 48bc5b2ac654229832752e7f8593f0dda2ccf80c (diff) |
BGE patch: add advanced parameters for SoftBody. Add Rasterizer.drawLine() Python function.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index a193e89d26c..d966d691fdd 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -7849,6 +7849,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main) // Before it was conditioning all the other dynamic flags if (!(ob->gameflag & OB_ACTOR)) ob->gameflag &= ~(OB_GHOST|OB_DYNAMIC|OB_RIGID_BODY|OB_SOFT_BODY|OB_COLLISION_RESPONSE); + /* suitable default for older files */ + ob->linearStiffness = 1.0f; + ob->angularStiffness = 1.0f; + ob->volumePreservation = 1.0f; } } |