diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsScene.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 10 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 2 |
4 files changed, 14 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index 54c50f8..13ea084 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs | |||
@@ -86,7 +86,10 @@ namespace OpenSim.Region.Physics.Manager | |||
86 | Vector3 size, Quaternion rotation, bool isPhysical) | 86 | Vector3 size, Quaternion rotation, bool isPhysical) |
87 | { | 87 | { |
88 | PhysicsActor ret = AddPrimShape(primName, pbs, position, size, rotation, isPhysical); | 88 | PhysicsActor ret = AddPrimShape(primName, pbs, position, size, rotation, isPhysical); |
89 | if (ret != null) ret.LocalID = localID; | 89 | |
90 | if (ret != null) | ||
91 | ret.LocalID = localID; | ||
92 | |||
90 | return ret; | 93 | return ret; |
91 | } | 94 | } |
92 | 95 | ||
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index a5fe45b..be4ee41 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -643,6 +643,8 @@ namespace OpenSim.Region.Physics.Meshing | |||
643 | 643 | ||
644 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical) | 644 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical) |
645 | { | 645 | { |
646 | // m_log.DebugFormat("[MESH]: Creating mesh for {0}", primName); | ||
647 | |||
646 | Mesh mesh = null; | 648 | Mesh mesh = null; |
647 | ulong key = 0; | 649 | ulong key = 0; |
648 | 650 | ||
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index c91658e..1060278 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -791,6 +791,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
791 | 791 | ||
792 | public void setMesh(OdeScene parent_scene, IMesh mesh) | 792 | public void setMesh(OdeScene parent_scene, IMesh mesh) |
793 | { | 793 | { |
794 | // m_log.DebugFormat("[ODE PRIM]: Setting mesh on {0} to {1}", Name, mesh); | ||
795 | |||
794 | // This sleeper is there to moderate how long it takes between | 796 | // This sleeper is there to moderate how long it takes between |
795 | // setting up the mesh and pre-processing it when we get rapid fire mesh requests on a single object | 797 | // setting up the mesh and pre-processing it when we get rapid fire mesh requests on a single object |
796 | 798 | ||
@@ -1398,7 +1400,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1398 | } | 1400 | } |
1399 | } | 1401 | } |
1400 | } | 1402 | } |
1401 | |||
1402 | else | 1403 | else |
1403 | { | 1404 | { |
1404 | _parent_scene.waitForSpaceUnlock(m_targetSpace); | 1405 | _parent_scene.waitForSpaceUnlock(m_targetSpace); |
@@ -1960,7 +1961,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
1960 | mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); | 1961 | mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); |
1961 | 1962 | ||
1962 | //IMesh mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); | 1963 | //IMesh mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); |
1963 | //Console.WriteLine("changesize 1"); | 1964 | Console.WriteLine("changesize 1"); |
1964 | CreateGeom(m_targetSpace, mesh); | 1965 | CreateGeom(m_targetSpace, mesh); |
1965 | 1966 | ||
1966 | 1967 | ||
@@ -1968,7 +1969,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
1968 | else | 1969 | else |
1969 | { | 1970 | { |
1970 | _mesh = null; | 1971 | _mesh = null; |
1971 | //Console.WriteLine("changesize 2"); | 1972 | Console.WriteLine("changesize 2"); |
1972 | CreateGeom(m_targetSpace, _mesh); | 1973 | CreateGeom(m_targetSpace, _mesh); |
1973 | } | 1974 | } |
1974 | 1975 | ||
@@ -2070,12 +2071,13 @@ Console.WriteLine(" JointCreateFixed"); | |||
2070 | 2071 | ||
2071 | IMesh mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); | 2072 | IMesh mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical); |
2072 | // createmesh returns null when it doesn't mesh. | 2073 | // createmesh returns null when it doesn't mesh. |
2074 | Console.WriteLine("changeshape needed meshing"); | ||
2073 | CreateGeom(m_targetSpace, mesh); | 2075 | CreateGeom(m_targetSpace, mesh); |
2074 | } | 2076 | } |
2075 | else | 2077 | else |
2076 | { | 2078 | { |
2077 | _mesh = null; | 2079 | _mesh = null; |
2078 | //Console.WriteLine("changeshape"); | 2080 | Console.WriteLine("changeshape not need meshing"); |
2079 | CreateGeom(m_targetSpace, null); | 2081 | CreateGeom(m_targetSpace, null); |
2080 | } | 2082 | } |
2081 | 2083 | ||
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 8d9f5f1..ae9c377 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -1770,6 +1770,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1770 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, | 1770 | public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, |
1771 | Vector3 size, Quaternion rotation, bool isPhysical) | 1771 | Vector3 size, Quaternion rotation, bool isPhysical) |
1772 | { | 1772 | { |
1773 | // m_log.DebugFormat("[PHYSICS]: Adding physics actor to {0}", primName); | ||
1774 | |||
1773 | PhysicsActor result; | 1775 | PhysicsActor result; |
1774 | IMesh mesh = null; | 1776 | IMesh mesh = null; |
1775 | 1777 | ||