BulletSim: fix crash when mesh asset wasn't available when meshing

the first time.
Debugging added for mesh/hull asset fetch.
This commit is contained in:
Robert Adams
2013-05-01 17:16:46 -07:00
parent 0378baed35
commit ed46b42fea
2 changed files with 19 additions and 10 deletions

View File

@@ -132,6 +132,7 @@ public sealed class BSShapeCollection : IDisposable
PrimitiveBaseShape pbs = prim.BaseShape;
// Kludge to create the capsule for the avatar.
// TDOD: Remove/redo this when BSShapeAvatar is working!!
BSCharacter theChar = prim as BSCharacter;
if (theChar != null)
{