aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2012-04-20 23:17:29 +0100
committerMelanie2012-04-20 23:17:29 +0100
commit31c5a7241ee7abedd439315e3f61451ad574fce5 (patch)
tree05c4368b7d0d24a4944fa294af0c77e8472f1ab1 /OpenSim
parentMerge branch 'master' into careminster (diff)
parentIf a physical prim is manually moved (e.g. by a user) then set the geometry p... (diff)
downloadopensim-SC-31c5a7241ee7abedd439315e3f61451ad574fce5.zip
opensim-SC-31c5a7241ee7abedd439315e3f61451ad574fce5.tar.gz
opensim-SC-31c5a7241ee7abedd439315e3f61451ad574fce5.tar.bz2
opensim-SC-31c5a7241ee7abedd439315e3f61451ad574fce5.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs22
1 files changed, 10 insertions, 12 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 6f37347..98f5905 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -1579,23 +1579,21 @@ Console.WriteLine(" JointCreateFixed");
1579 //m_log.Debug("[BUG]: race!"); 1579 //m_log.Debug("[BUG]: race!");
1580 //} 1580 //}
1581 } 1581 }
1582 else
1583 {
1584 // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position);
1585 // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
1586// _parent_scene.waitForSpaceUnlock(m_targetSpace);
1587 1582
1588 IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace); 1583 // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position);
1589 m_targetSpace = tempspace; 1584 // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
1585// _parent_scene.waitForSpaceUnlock(m_targetSpace);
1586
1587 IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace);
1588 m_targetSpace = tempspace;
1590 1589
1591// _parent_scene.waitForSpaceUnlock(m_targetSpace); 1590// _parent_scene.waitForSpaceUnlock(m_targetSpace);
1592 if (prim_geom != IntPtr.Zero) 1591 if (prim_geom != IntPtr.Zero)
1593 { 1592 {
1594 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z); 1593 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
1595 1594
1596// _parent_scene.waitForSpaceUnlock(m_targetSpace); 1595// _parent_scene.waitForSpaceUnlock(m_targetSpace);
1597 d.SpaceAdd(m_targetSpace, prim_geom); 1596 d.SpaceAdd(m_targetSpace, prim_geom);
1598 }
1599 } 1597 }
1600 1598
1601 changeSelectedStatus(); 1599 changeSelectedStatus();