aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
diff options
context:
space:
mode:
authorRobert Adams2014-07-26 16:03:43 -0700
committerRobert Adams2014-07-26 16:03:43 -0700
commit9c804466e504275ea4e6379b42113d2fce80f30c (patch)
tree3009549cce4c6435b3cbc228cde266877d29308e /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
parentAdd inventory.<url>.RequestsMade stat. (diff)
downloadopensim-SC_OLD-9c804466e504275ea4e6379b42113d2fce80f30c.zip
opensim-SC_OLD-9c804466e504275ea4e6379b42113d2fce80f30c.tar.gz
opensim-SC_OLD-9c804466e504275ea4e6379b42113d2fce80f30c.tar.bz2
opensim-SC_OLD-9c804466e504275ea4e6379b42113d2fce80f30c.tar.xz
BulletSim: rearrange code for sensing whether shapes have been
constructed. Add routine to check for failed and use that method rather than checking individual state.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
index 7a46550..75ffeb4 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
@@ -159,6 +159,11 @@ public abstract class BSPhysObject : PhysicsActor
159 Unknown, Waiting, FailedAssetFetch, FailedMeshing, Fetched 159 Unknown, Waiting, FailedAssetFetch, FailedMeshing, Fetched
160 } 160 }
161 public PrimAssetCondition PrimAssetState { get; set; } 161 public PrimAssetCondition PrimAssetState { get; set; }
162 public virtual bool AssetFailed()
163 {
164 return ( (this.PrimAssetState == PrimAssetCondition.FailedAssetFetch)
165 || (this.PrimAssetState == PrimAssetCondition.FailedMeshing) );
166 }
162 167
163 // The objects base shape information. Null if not a prim type shape. 168 // The objects base shape information. Null if not a prim type shape.
164 public PrimitiveBaseShape BaseShape { get; protected set; } 169 public PrimitiveBaseShape BaseShape { get; protected set; }