BulletSim: fix the 'No recognised physics mesh found ...' error spew by remembering that the last asset fetch failed until the simulator resets the shape parameters.

This commit is contained in:
Robert Adams
2013-01-11 16:44:34 -08:00
parent 72cc94cfbc
commit b592ec265b

View File

@@ -169,6 +169,7 @@ public sealed class BSPrim : BSPhysObject
public override PrimitiveBaseShape Shape {
set {
BaseShape = value;
LastAssetBuildFailed = false;
ForceBodyShapeRebuild(false);
}
}
@@ -178,7 +179,6 @@ public sealed class BSPrim : BSPhysObject
public override bool ForceBodyShapeRebuild(bool inTaintTime)
{
LastAssetBuildFailed = false;
PhysicsScene.TaintedObject(inTaintTime, "BSPrim.ForceBodyShapeRebuild", delegate()
{
_mass = CalculateMass(); // changing the shape changes the mass