deprecated world settings were being used making new world's have zero gravity in the game engine.

Double checked these aren't used anymore by renaming the vars in DNA_world_types.h
This commit is contained in:
Campbell Barton
2009-08-23 17:33:34 +00:00
parent 2c5cbd4c7c
commit 77ec3a1239
2 changed files with 7 additions and 7 deletions

View File

@@ -2485,10 +2485,10 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
}
}
if (occlusion)
kxscene->SetDbvtOcclusionRes(blenderscene->world->occlusionRes);
kxscene->SetDbvtOcclusionRes(blenderscene->gm.occlusionRes);
}
if (blenderscene->world)
kxscene->GetPhysicsEnvironment()->setNumTimeSubSteps(blenderscene->world->physubstep);
kxscene->GetPhysicsEnvironment()->setNumTimeSubSteps(blenderscene->gm.physubstep);
// now that the scenegraph is complete, let's instantiate the deformers.
// We need that to create reusable derived mesh and physic shapes

View File

@@ -382,12 +382,12 @@ void KX_KetsjiEngine::StartEngine(bool clearIpo)
m_firstframe = true;
m_bInitialized = true;
// there is always one scene enabled at startup
World* world = m_scenes[0]->GetBlenderScene()->world;
if (world)
Scene* scene = m_scenes[0]->GetBlenderScene();
if (scene)
{
m_ticrate = world->ticrate ? world->ticrate : DEFAULT_LOGIC_TIC_RATE;
m_maxLogicFrame = world->maxlogicstep ? world->maxlogicstep : 5;
m_maxPhysicsFrame = world->maxphystep ? world->maxlogicstep : 5;
m_ticrate = scene->gm.ticrate ? scene->gm.ticrate : DEFAULT_LOGIC_TIC_RATE;
m_maxLogicFrame = scene->gm.maxlogicstep ? scene->gm.maxlogicstep : 5;
m_maxPhysicsFrame = scene->gm.maxphystep ? scene->gm.maxlogicstep : 5;
}
else
{