diff options
Merge branch 'master' into bigmerge
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index f07cf46..af05a15 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -184,7 +184,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
184 | private bool m_lastUpdateSent; | 184 | private bool m_lastUpdateSent; |
185 | 185 | ||
186 | public IntPtr Body = IntPtr.Zero; | 186 | public IntPtr Body = IntPtr.Zero; |
187 | public String Name { get; private set; } | ||
188 | private Vector3 _target_velocity; | 187 | private Vector3 _target_velocity; |
189 | private d.Mass pMass; | 188 | private d.Mass pMass; |
190 | 189 | ||
@@ -273,7 +272,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
273 | 272 | ||
274 | m_taintadd = true; | 273 | m_taintadd = true; |
275 | _parent_scene.AddPhysicsActorTaint(this); | 274 | _parent_scene.AddPhysicsActorTaint(this); |
276 | // don't do .add() here; old geoms get recycled with the same hash | ||
277 | } | 275 | } |
278 | 276 | ||
279 | public override int PhysicsActorType | 277 | public override int PhysicsActorType |
@@ -857,7 +855,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
857 | m_MeshToTriMeshMap[mesh] = _triMeshData; | 855 | m_MeshToTriMeshMap[mesh] = _triMeshData; |
858 | } | 856 | } |
859 | 857 | ||
860 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 858 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
861 | try | 859 | try |
862 | { | 860 | { |
863 | if (prim_geom == IntPtr.Zero) | 861 | if (prim_geom == IntPtr.Zero) |
@@ -1380,7 +1378,7 @@ Console.WriteLine("CreateGeom:"); | |||
1380 | { | 1378 | { |
1381 | if (((_size.X / 2f) > 0f)) | 1379 | if (((_size.X / 2f) > 0f)) |
1382 | { | 1380 | { |
1383 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1381 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1384 | try | 1382 | try |
1385 | { | 1383 | { |
1386 | //Console.WriteLine(" CreateGeom 1"); | 1384 | //Console.WriteLine(" CreateGeom 1"); |
@@ -1394,7 +1392,7 @@ Console.WriteLine("CreateGeom:"); | |||
1394 | } | 1392 | } |
1395 | else | 1393 | else |
1396 | { | 1394 | { |
1397 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1395 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1398 | try | 1396 | try |
1399 | { | 1397 | { |
1400 | //Console.WriteLine(" CreateGeom 2"); | 1398 | //Console.WriteLine(" CreateGeom 2"); |
@@ -1409,7 +1407,7 @@ Console.WriteLine("CreateGeom:"); | |||
1409 | } | 1407 | } |
1410 | else | 1408 | else |
1411 | { | 1409 | { |
1412 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1410 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1413 | try | 1411 | try |
1414 | { | 1412 | { |
1415 | //Console.WriteLine(" CreateGeom 3"); | 1413 | //Console.WriteLine(" CreateGeom 3"); |
@@ -1424,7 +1422,7 @@ Console.WriteLine("CreateGeom:"); | |||
1424 | } | 1422 | } |
1425 | else | 1423 | else |
1426 | { | 1424 | { |
1427 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1425 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1428 | try | 1426 | try |
1429 | { | 1427 | { |
1430 | //Console.WriteLine(" CreateGeom 4"); | 1428 | //Console.WriteLine(" CreateGeom 4"); |
@@ -1577,17 +1575,17 @@ Console.WriteLine(" JointCreateFixed"); | |||
1577 | { | 1575 | { |
1578 | // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position); | 1576 | // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position); |
1579 | // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position); | 1577 | // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position); |
1580 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1578 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1581 | 1579 | ||
1582 | IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace); | 1580 | IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace); |
1583 | m_targetSpace = tempspace; | 1581 | m_targetSpace = tempspace; |
1584 | 1582 | ||
1585 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1583 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1586 | if (prim_geom != IntPtr.Zero) | 1584 | if (prim_geom != IntPtr.Zero) |
1587 | { | 1585 | { |
1588 | d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z); | 1586 | d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z); |
1589 | 1587 | ||
1590 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1588 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1591 | d.SpaceAdd(m_targetSpace, prim_geom); | 1589 | d.SpaceAdd(m_targetSpace, prim_geom); |
1592 | } | 1590 | } |
1593 | } | 1591 | } |
@@ -1978,7 +1976,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
1978 | 1976 | ||
1979 | if (d.SpaceQuery(m_targetSpace, prim_geom)) | 1977 | if (d.SpaceQuery(m_targetSpace, prim_geom)) |
1980 | { | 1978 | { |
1981 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1979 | // _parent_scene.waitForSpaceUnlock(m_targetSpace); |
1982 | d.SpaceRemove(m_targetSpace, prim_geom); | 1980 | d.SpaceRemove(m_targetSpace, prim_geom); |
1983 | } | 1981 | } |
1984 | 1982 | ||