aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/ChOdePlugin
diff options
context:
space:
mode:
authorMelanie2011-07-15 19:35:49 +0200
committerMelanie2011-07-15 19:35:49 +0200
commit8dff9d564dfbf4841f03a919df44e8ae3d76de25 (patch)
tree787a083ac9efc5e3a67f271e7fe6bc4a22d0ea94 /OpenSim/Region/Physics/ChOdePlugin
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC_OLD-8dff9d564dfbf4841f03a919df44e8ae3d76de25.zip
opensim-SC_OLD-8dff9d564dfbf4841f03a919df44e8ae3d76de25.tar.gz
opensim-SC_OLD-8dff9d564dfbf4841f03a919df44e8ae3d76de25.tar.bz2
opensim-SC_OLD-8dff9d564dfbf4841f03a919df44e8ae3d76de25.tar.xz
Revert "Add localid support to ch0de properly"
This reverts commit bb402d0d95c934fbcd8b1c03e228ec1d0a14f14d.
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs3
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs14
2 files changed, 11 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
index 82f1b94..7cd2dd1 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
@@ -256,9 +256,8 @@ namespace OpenSim.Region.Physics.OdePlugin
256 256
257 257
258 public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size, 258 public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size,
259 Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode, uint localid) 259 Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical, CollisionLocker dode)
260 { 260 {
261 m_localID = localid;
262 ode = dode; 261 ode = dode;
263 if (!pos.IsFinite()) 262 if (!pos.IsFinite())
264 { 263 {
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
index 353db44..a622745 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -1717,7 +1717,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1717 } 1717 }
1718 1718
1719 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation, 1719 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
1720 IMesh mesh, PrimitiveBaseShape pbs, bool isphysical, uint localid) 1720 IMesh mesh, PrimitiveBaseShape pbs, bool isphysical)
1721 { 1721 {
1722 1722
1723 Vector3 pos = position; 1723 Vector3 pos = position;
@@ -1727,7 +1727,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1727 OdePrim newPrim; 1727 OdePrim newPrim;
1728 lock (OdeLock) 1728 lock (OdeLock)
1729 { 1729 {
1730 newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, ode, localid); 1730 newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, ode);
1731 1731
1732 lock (_prims) 1732 lock (_prims)
1733 _prims.Add(newPrim); 1733 _prims.Add(newPrim);
@@ -1749,7 +1749,13 @@ namespace OpenSim.Region.Physics.OdePlugin
1749 } 1749 }
1750 1750
1751 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, 1751 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1752 Vector3 size, Quaternion rotation, bool isPhysical, uint localid) 1752 Vector3 size, Quaternion rotation) //To be removed
1753 {
1754 return AddPrimShape(primName, pbs, position, size, rotation, false);
1755 }
1756
1757 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1758 Vector3 size, Quaternion rotation, bool isPhysical)
1753 { 1759 {
1754 PhysicsActor result; 1760 PhysicsActor result;
1755 IMesh mesh = null; 1761 IMesh mesh = null;
@@ -1757,7 +1763,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1757 if (needsMeshing(pbs)) 1763 if (needsMeshing(pbs))
1758 mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); 1764 mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical);
1759 1765
1760 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, localid); 1766 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical);
1761 1767
1762 return result; 1768 return result;
1763 } 1769 }