diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-22 01:44:12 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-22 01:44:12 +0300 |
commit | 7e031b7a39f8cf1b8bf9d415449f177e7991e9bd (patch) | |
tree | 2b377b809a44d80a8f3d2f47d7c8d86218f7f75b /source/gameengine/Converter | |
parent | 4e8f06604fa2d3f300968151021ac937409a103e (diff) |
Correction on BGE fixes:
- check that an object has been created before setting the physics environment
- check that there is an active camera before using it
- when a camera is deleted, remove it from m_cameras list
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index 5a7423e00b1..743aabcd821 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -1670,7 +1670,8 @@ static KX_GameObject *gameobject_from_blenderobject( break; } } - gameobj->SetPhysicsEnvironment(kxscene->GetPhysicsEnvironment()); + if (gameobj) + gameobj->SetPhysicsEnvironment(kxscene->GetPhysicsEnvironment()); return gameobj; } |