forked from bartvdbraak/blender
BGE Fix for no redrawing.
Was caused by un-initialized engine ticrate, do_versions was working on 2.4x but isnt in 2.5 so just add a zero check when getting from the world.
This commit is contained in:
parent
aa933d2c9f
commit
388e59a768
@ -396,9 +396,9 @@ void KX_KetsjiEngine::StartEngine(bool clearIpo)
|
||||
World* world = m_scenes[0]->GetBlenderScene()->world;
|
||||
if (world)
|
||||
{
|
||||
m_ticrate = world->ticrate;
|
||||
m_maxLogicFrame = world->maxlogicstep;
|
||||
m_maxPhysicsFrame = world->maxphystep;
|
||||
m_ticrate = world->ticrate ? world->ticrate : DEFAULT_LOGIC_TIC_RATE;
|
||||
m_maxLogicFrame = world->maxlogicstep ? world->maxlogicstep : 5;
|
||||
m_maxPhysicsFrame = world->maxphystep ? world->maxlogicstep : 5;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user