aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs10
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs2
2 files changed, 8 insertions, 4 deletions
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"); 1964Console.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"); 1972Console.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.
2074Console.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"); 2080Console.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