[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21206] branches/blender2.5/blender/source /gameengine/Ketsji/KX_KetsjiEngine.cpp: BGE Fix for no redrawing.
Campbell Barton
ideasman42 at gmail.com
Sun Jun 28 04:37:08 CEST 2009
Revision: 21206
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21206
Author: campbellbarton
Date: 2009-06-28 04:37:07 +0200 (Sun, 28 Jun 2009)
Log Message:
-----------
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.
Modified Paths:
--------------
branches/blender2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
Modified: branches/blender2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp 2009-06-28 01:38:28 UTC (rev 21205)
+++ branches/blender2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp 2009-06-28 02:37:07 UTC (rev 21206)
@@ -396,9 +396,9 @@
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
{
More information about the Bf-blender-cvs
mailing list