BulletSim: fix BulletSim crashing if there is no [BulletSim] section

in any INI file. Update TODO list.
This commit is contained in:
Robert Adams
2013-05-17 14:43:53 -07:00
parent ec818a506b
commit 214bae1479
2 changed files with 12 additions and 8 deletions

View File

@@ -268,6 +268,12 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
// Do any replacements in the parameters
m_physicsLoggingPrefix = m_physicsLoggingPrefix.Replace("%REGIONNAME%", RegionName);
}
else
{
BulletEngineName = "BulletUnmanaged";
m_physicsLoggingEnabled = false;
VehicleLoggingEnabled = false;
}
// The material characteristics.
BSMaterials.InitializeFromDefaults(Params);