remove SOG.FromPartID from main code and flag it obsolete
parent
7c566dca5a
commit
51104be6d4
|
@ -2624,8 +2624,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
group.RootPart.Shape.LastAttachPoint = (byte)group.AttachmentPoint;
|
||||
}
|
||||
|
||||
group.FromPartID = sourcePart.UUID;
|
||||
group.RezzerID = group.FromPartID;
|
||||
group.RezzerID = sourcePart.UUID;
|
||||
|
||||
if( i == 0)
|
||||
AddNewSceneObject(group, true, curpos, rot, vel);
|
||||
|
|
|
@ -1059,7 +1059,12 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// <remarks>
|
||||
/// If not applicable will be UUID.Zero
|
||||
/// </remarks>
|
||||
public UUID FromPartID { get; set; }
|
||||
/// obsolete use RezzerID
|
||||
public UUID FromPartID
|
||||
{
|
||||
get { return RezzerID; }
|
||||
set {RezzerID = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The folder ID that this object was rezzed from, if applicable.
|
||||
|
|
|
@ -783,7 +783,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
|||
group.RootPart.Shape.LastAttachPoint = (byte)group.AttachmentPoint;
|
||||
}
|
||||
|
||||
group.FromPartID = host.RootPart.UUID;
|
||||
group.RezzerID = host.RootPart.UUID;
|
||||
m_scene.AddNewSceneObject(group, true, curpos, rot, vel);
|
||||
|
||||
UUID storeID = group.UUID;
|
||||
|
|
|
@ -4030,8 +4030,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
CheckThreatLevel(ThreatLevel.None, "osGetRezzingObject");
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
return new LSL_Key(m_host.ParentGroup.FromPartID.ToString());
|
||||
UUID rezID = m_host.ParentGroup.RezzerID;
|
||||
if(rezID == UUID.Zero || m_host.ParentGroup.Scene.GetScenePresence(rezID) != null)
|
||||
return new LSL_Key(UUID.Zero.ToString());
|
||||
return new LSL_Key(rezID.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue