aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs
diff options
context:
space:
mode:
authorDiva Canto2013-05-14 08:12:23 -0700
committerDiva Canto2013-05-14 08:12:23 -0700
commit66c328f51bed2f78668f471f4caab7717949019b (patch)
tree0192f20e9b603a237bce5d7ad207ba2e4429f09d /OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs
parentHGTP-mesh bug: the mesh download requests were going to the departing sims fo... (diff)
parentBulletSim: add a lock to try and catch a native shape creation/destruction (diff)
downloadopensim-SC-66c328f51bed2f78668f471f4caab7717949019b.zip
opensim-SC-66c328f51bed2f78668f471f4caab7717949019b.tar.gz
opensim-SC-66c328f51bed2f78668f471f4caab7717949019b.tar.bz2
opensim-SC-66c328f51bed2f78668f471f4caab7717949019b.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSShapes.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs b/OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs
index 262d734..72d039b 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSShapes.cs
@@ -283,8 +283,13 @@ public class BSShapeNative : BSShape
283 public override BSShape GetReference(BSScene pPhysicsScene, BSPhysObject pPrim) 283 public override BSShape GetReference(BSScene pPhysicsScene, BSPhysObject pPrim)
284 { 284 {
285 // Native shapes are not shared so we return a new shape. 285 // Native shapes are not shared so we return a new shape.
286 return new BSShapeNative(CreatePhysicalNativeShape(pPhysicsScene, pPrim, 286 BSShape ret = null;
287 physShapeInfo.shapeType, (FixedShapeKey)physShapeInfo.shapeKey) ); 287 lock (physShapeInfo)
288 {
289 ret = new BSShapeNative(CreatePhysicalNativeShape(pPhysicsScene, pPrim,
290 physShapeInfo.shapeType, (FixedShapeKey)physShapeInfo.shapeKey));
291 }
292 return ret;
288 } 293 }
289 294
290 // Make this reference to the physical shape go away since native shapes are not shared. 295 // Make this reference to the physical shape go away since native shapes are not shared.