move resit fix to ScenePresence.cs and allow for requesting sit on objects other than the object currently sat on

This commit is contained in:
dahlia
2013-01-14 22:24:24 -08:00
committed by Justin Clark-Casey (justincc)
parent 795009cae2
commit e2823bfefe
2 changed files with 7 additions and 12 deletions

View File

@@ -1954,6 +1954,10 @@ namespace OpenSim.Region.Framework.Scenes
{
if (ParentID != 0)
{
var targetPart = m_scene.GetSceneObjectPart(targetID);
if (targetPart != null && targetPart.LocalId == ParentID)
return; // already sitting here, ignore
StandUp();
}