Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-05-02 17:28:13 +0400
committerTon Roosendaal <ton@blender.org>2005-05-02 17:28:13 +0400
commit42126cb5fcceda5485d02af7efbfe996b4aae160 (patch)
tree12dfc4c41f600ca481a50be691e9fe0058d741fc /source/blender/python
parent2606a5c5d37e6460066dae78e88d47fde6552c65 (diff)
Added baking for softbodies.
Works as follows; - press the 'show bake settings' button (no space left... :) - define start/end frame for bake, and an interval step. The baked result interpolates nicely (Bspline, 4 keys) so in general a step size of 2 or 3 still gives OK results. - Press "BAKE". This will do a full animation + playback. Press ESC if it you don't want it. Once Baked, the BAKE button becomes a FREE BAKE. As reminder the softbody buttons get blocked with error() menu. This saves OK in a file. Renders any frame, including fields and moblur. You can also set a "Timeoffs" for the softbody. And yes, this should be in the NLA once... :) NOTE! With this commit, files saved with the old (first commit) version by Jens Ole won't read the settings back... he stored all sofbody variables in Object, which was moved to a new struct when I did my first commit on SB (over a month ago) Also note that I moved particle deflecting & softbody to a new include.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/Object.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c
index 63f97f88249..d07633a5185 100644
--- a/source/blender/python/api2_2x/Object.c
+++ b/source/blender/python/api2_2x/Object.c
@@ -39,15 +39,20 @@
#include "NLA.h"
#include "logic.h"
#include <blendef.h>
+
#include <DNA_scene_types.h>
#include <DNA_mesh_types.h>
#include <DNA_curve_types.h>
+#include "DNA_object_force.h"
#include <DNA_property_types.h>
+
#include <BSE_edit.h>
+
#include <BKE_property.h>
#include <BKE_mball.h>
#include <BKE_font.h>
#include <BKE_softbody.h>
+
#include <BIF_editview.h>
#include <BSE_editipo.h>