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:
authorErwin Coumans <blender@erwincoumans.com>2007-01-07 07:54:29 +0300
committerErwin Coumans <blender@erwincoumans.com>2007-01-07 07:54:29 +0300
commitf4ee0f4b4cac01c46ecc6857d401070066a64ac9 (patch)
tree345853e6c9ef6923499bd21efd93f156f2c78546 /source/gameengine/BlenderRoutines
parent4a70681ce21d254f3bf7033380ec33732be2825d (diff)
fixes in rigidbody constraints rigidbody -> IPO baking:
copy system with rigidbody constraint will link new constraints to new objects (instead of old) fps from blender will be used when baking (left shift/ctrl/alt + P)
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index 91394c8c212..80db437bcd9 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -602,6 +602,10 @@ extern "C" void StartKetsjiShellSimulation(struct ScrArea *area,
// start the engine
ketsjiengine->StartEngine(false);
+
+ ketsjiengine->SetUseFixedTime(true);
+
+ ketsjiengine->SetTicRate(blscene->r.frs_sec);
// the mainloop
while ((blscene->r.cfra<=blscene->r.efra)&&(!exitrequested))
@@ -609,14 +613,6 @@ extern "C" void StartKetsjiShellSimulation(struct ScrArea *area,
printf("frame %i\n",blscene->r.cfra);
// first check if we want to exit
exitrequested = ketsjiengine->GetExitCode();
- /*for (int ix=0;i<geobjs->GetCount();ix++){
- KX_GameObject* gameobj = (KX_GameObject*) geobjs->GetValue(ix);
- if (!gameobj->IsDynamic()){
- //gameobj->UpdateNonDynas();//UpdateIPO((float)blscene->r.cfra,true, true, true);
- struct Object* blenderobject = sceneconverter->FindBlenderObject(gameobj);
- }
- }*/
-
// kick the engine
ketsjiengine->NextFrame();