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
        {


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to