more changes relative to incorrect use of activegroupid
parent
ab7619292f
commit
23578635df
|
@ -47,7 +47,8 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public delegate void ImprovedInstantMessage(IClientAPI remoteclient, GridInstantMessage im);
|
public delegate void ImprovedInstantMessage(IClientAPI remoteclient, GridInstantMessage im);
|
||||||
|
|
||||||
public delegate void RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
public delegate void RezObject(IClientAPI remoteClient, UUID itemID, UUID GroupID,
|
||||||
|
Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID);
|
bool RezSelected, bool RemoveItem, UUID fromTaskID);
|
||||||
|
|
||||||
|
|
|
@ -5805,9 +5805,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
public ulong GetGroupPowers(UUID groupID)
|
public ulong GetGroupPowers(UUID groupID)
|
||||||
{
|
{
|
||||||
if (groupID == ActiveGroupId)
|
|
||||||
return ActiveGroupPowers;
|
|
||||||
|
|
||||||
lock(m_groupPowers)
|
lock(m_groupPowers)
|
||||||
{
|
{
|
||||||
if (m_groupPowers.ContainsKey(groupID))
|
if (m_groupPowers.ContainsKey(groupID))
|
||||||
|
@ -6729,7 +6726,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
RezObject handlerRezObject = OnRezObject;
|
RezObject handlerRezObject = OnRezObject;
|
||||||
if (handlerRezObject != null)
|
if (handlerRezObject != null)
|
||||||
{
|
{
|
||||||
handlerRezObject(this, rezPacket.InventoryData.ItemID, rezPacket.RezData.RayEnd,
|
UUID rezGroupID = rezPacket.AgentData.GroupID;
|
||||||
|
if(!IsGroupMember(rezGroupID))
|
||||||
|
rezGroupID = UUID.Zero;
|
||||||
|
handlerRezObject(this, rezPacket.InventoryData.ItemID, rezGroupID, rezPacket.RezData.RayEnd,
|
||||||
rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID,
|
rezPacket.RezData.RayStart, rezPacket.RezData.RayTargetID,
|
||||||
rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection,
|
rezPacket.RezData.BypassRaycast, rezPacket.RezData.RayEndIsIntersection,
|
||||||
rezPacket.RezData.RezSelected, rezPacket.RezData.RemoveItem,
|
rezPacket.RezData.RezSelected, rezPacket.RezData.RemoveItem,
|
||||||
|
@ -7644,9 +7644,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
handlerObjectDuplicate = OnObjectDuplicate;
|
handlerObjectDuplicate = OnObjectDuplicate;
|
||||||
if (handlerObjectDuplicate != null)
|
if (handlerObjectDuplicate != null)
|
||||||
{
|
{
|
||||||
|
UUID rezGroupID = dupe.AgentData.GroupID;
|
||||||
|
if(!IsGroupMember(rezGroupID))
|
||||||
|
rezGroupID = UUID.Zero;
|
||||||
handlerObjectDuplicate(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset,
|
handlerObjectDuplicate(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset,
|
||||||
dupe.SharedData.DuplicateFlags, AgentId,
|
dupe.SharedData.DuplicateFlags, AgentId,
|
||||||
dupe.AgentData.GroupID);
|
rezGroupID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8266,9 +8269,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
handlerObjectDuplicateOnRay = OnObjectDuplicateOnRay;
|
handlerObjectDuplicateOnRay = OnObjectDuplicateOnRay;
|
||||||
if (handlerObjectDuplicateOnRay != null)
|
if (handlerObjectDuplicateOnRay != null)
|
||||||
{
|
{
|
||||||
handlerObjectDuplicateOnRay(dupeOnRay.ObjectData[i].ObjectLocalID, dupeOnRay.AgentData.DuplicateFlags,
|
|
||||||
AgentId, dupeOnRay.AgentData.GroupID, dupeOnRay.AgentData.RayTargetID, dupeOnRay.AgentData.RayEnd,
|
UUID rezGroupID = dupeOnRay.AgentData.GroupID;
|
||||||
dupeOnRay.AgentData.RayStart, dupeOnRay.AgentData.BypassRaycast, dupeOnRay.AgentData.RayEndIsIntersection,
|
if(!IsGroupMember(rezGroupID))
|
||||||
|
rezGroupID = UUID.Zero;
|
||||||
|
|
||||||
|
handlerObjectDuplicateOnRay(dupeOnRay.ObjectData[i].ObjectLocalID,
|
||||||
|
dupeOnRay.AgentData.DuplicateFlags, AgentId, rezGroupID,
|
||||||
|
dupeOnRay.AgentData.RayTargetID, dupeOnRay.AgentData.RayEnd,
|
||||||
|
dupeOnRay.AgentData.RayStart, dupeOnRay.AgentData.BypassRaycast,
|
||||||
|
dupeOnRay.AgentData.RayEndIsIntersection,
|
||||||
dupeOnRay.AgentData.CopyCenters, dupeOnRay.AgentData.CopyRotates);
|
dupeOnRay.AgentData.CopyCenters, dupeOnRay.AgentData.CopyRotates);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -306,7 +306,19 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
///
|
///
|
||||||
/// RezObject
|
/// RezObject
|
||||||
///
|
///
|
||||||
public override SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
// compatibility do not use
|
||||||
|
public override SceneObjectGroup RezObject(
|
||||||
|
IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
|
{
|
||||||
|
return RezObject(remoteClient, itemID, UUID.Zero, RayEnd, RayStart,
|
||||||
|
RayTargetID, BypassRayCast, RayEndIsIntersection,
|
||||||
|
RezSelected, RemoveItem, fromTaskID, attachment);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID,
|
||||||
|
UUID groupID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
{
|
{
|
||||||
|
@ -331,7 +343,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// OK, we're done fetching. Pass it up to the default RezObject
|
// OK, we're done fetching. Pass it up to the default RezObject
|
||||||
SceneObjectGroup sog = base.RezObject(remoteClient, itemID, RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection,
|
SceneObjectGroup sog = base.RezObject(remoteClient, itemID, groupID, RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection,
|
||||||
RezSelected, RemoveItem, fromTaskID, attachment);
|
RezSelected, RemoveItem, fromTaskID, attachment);
|
||||||
|
|
||||||
return sog;
|
return sog;
|
||||||
|
|
|
@ -818,12 +818,22 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
// compatibility do not use
|
||||||
public virtual SceneObjectGroup RezObject(
|
public virtual SceneObjectGroup RezObject(
|
||||||
IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
{
|
{
|
||||||
|
return RezObject(remoteClient, itemID, UUID.Zero, RayEnd, RayStart,
|
||||||
|
RayTargetID, BypassRayCast, RayEndIsIntersection,
|
||||||
|
RezSelected, RemoveItem, fromTaskID, attachment);
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual SceneObjectGroup RezObject(
|
||||||
|
IClientAPI remoteClient, UUID itemID, UUID rezGroupID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
|
{
|
||||||
// m_log.DebugFormat("[INVENTORY ACCESS MODULE]: RezObject for {0}, item {1}", remoteClient.Name, itemID);
|
// m_log.DebugFormat("[INVENTORY ACCESS MODULE]: RezObject for {0}, item {1}", remoteClient.Name, itemID);
|
||||||
InventoryItemBase item = m_Scene.InventoryService.GetItem(remoteClient.AgentId, itemID);
|
InventoryItemBase item = m_Scene.InventoryService.GetItem(remoteClient.AgentId, itemID);
|
||||||
|
|
||||||
|
@ -835,14 +845,26 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
item.Owner = remoteClient.AgentId;
|
item.Owner = remoteClient.AgentId;
|
||||||
|
|
||||||
return RezObject(
|
return RezObject(
|
||||||
remoteClient, item, item.AssetID,
|
remoteClient, item, rezGroupID, item.AssetID,
|
||||||
RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection,
|
RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection,
|
||||||
RezSelected, RemoveItem, fromTaskID, attachment);
|
RezSelected, RemoveItem, fromTaskID, attachment);
|
||||||
}
|
}
|
||||||
|
// compatility
|
||||||
|
public virtual SceneObjectGroup RezObject(
|
||||||
|
IClientAPI remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
|
{
|
||||||
|
return RezObject(remoteClient, item, UUID.Zero, assetID,
|
||||||
|
RayEnd, RayStart, RayTargetID,
|
||||||
|
BypassRayCast, RayEndIsIntersection,
|
||||||
|
RezSelected, RemoveItem, fromTaskID, attachment);
|
||||||
|
}
|
||||||
|
|
||||||
public virtual SceneObjectGroup RezObject(
|
public virtual SceneObjectGroup RezObject(
|
||||||
IClientAPI remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd, Vector3 RayStart,
|
IClientAPI remoteClient, InventoryItemBase item, UUID groupID, UUID assetID,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
Vector3 RayEnd, Vector3 RayStart, UUID RayTargetID,
|
||||||
|
byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
|
||||||
{
|
{
|
||||||
AssetBase rezAsset = m_Scene.AssetService.Get(assetID.ToString());
|
AssetBase rezAsset = m_Scene.AssetService.Get(assetID.ToString());
|
||||||
|
@ -986,6 +1008,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
group.IsAttachment = true;
|
group.IsAttachment = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group.SetGroup(groupID, remoteClient);
|
||||||
|
|
||||||
// If we're rezzing an attachment then don't ask
|
// If we're rezzing an attachment then don't ask
|
||||||
// AddNewSceneObject() to update the client since
|
// AddNewSceneObject() to update the client since
|
||||||
// we'll be doing that later on. Scheduling more than
|
// we'll be doing that later on. Scheduling more than
|
||||||
|
@ -995,12 +1019,9 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
m_Scene.AddNewSceneObject(group, true, false);
|
m_Scene.AddNewSceneObject(group, true, false);
|
||||||
|
|
||||||
if (!attachment)
|
if (!attachment)
|
||||||
|
{
|
||||||
group.AbsolutePosition = pos + veclist[i];
|
group.AbsolutePosition = pos + veclist[i];
|
||||||
|
|
||||||
group.SetGroup(remoteClient.ActiveGroupId, remoteClient);
|
|
||||||
|
|
||||||
if (!attachment)
|
|
||||||
{
|
|
||||||
// Fire on_rez
|
// Fire on_rez
|
||||||
group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1);
|
group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1);
|
||||||
rootPart.ParentGroup.ResumeScripts();
|
rootPart.ParentGroup.ResumeScripts();
|
||||||
|
|
|
@ -166,7 +166,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
|
||||||
|
|
||||||
SceneObjectGroup so
|
SceneObjectGroup so
|
||||||
= m_iam.RezObject(
|
= m_iam.RezObject(
|
||||||
m_tc, item1Id, Vector3.Zero, Vector3.Zero, UUID.Zero, 1, false, false, false, UUID.Zero, false);
|
m_tc, item1Id, UUID.Zero, Vector3.Zero, Vector3.Zero, UUID.Zero, 1, false, false, false, UUID.Zero, false);
|
||||||
|
|
||||||
Assert.That(so, Is.Not.Null);
|
Assert.That(so, Is.Not.Null);
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="remoteClient"></param>
|
/// <param name="remoteClient"></param>
|
||||||
/// <param name="itemID"></param>
|
/// <param name="itemID"></param>
|
||||||
|
/// <param name="rezGroupID"></param>
|
||||||
/// <param name="RayEnd"></param>
|
/// <param name="RayEnd"></param>
|
||||||
/// <param name="RayStart"></param>
|
/// <param name="RayStart"></param>
|
||||||
/// <param name="RayTargetID"></param>
|
/// <param name="RayTargetID"></param>
|
||||||
|
@ -80,6 +81,11 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// <param name="fromTaskID"></param>
|
/// <param name="fromTaskID"></param>
|
||||||
/// <param name="attachment"></param>
|
/// <param name="attachment"></param>
|
||||||
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful.</returns>
|
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful.</returns>
|
||||||
|
SceneObjectGroup RezObject(
|
||||||
|
IClientAPI remoteClient, UUID itemID, UUID rezGroupID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment);
|
||||||
|
// compatibily do not use
|
||||||
SceneObjectGroup RezObject(
|
SceneObjectGroup RezObject(
|
||||||
IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
@ -97,6 +103,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// The item from which the object asset came. Can be null, in which case pre and post rez item adjustment and checks are not performed.
|
/// The item from which the object asset came. Can be null, in which case pre and post rez item adjustment and checks are not performed.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="assetID">The asset id for the object to rez.</param>
|
/// <param name="assetID">The asset id for the object to rez.</param>
|
||||||
|
/// <param name="rezObjectID">The requested group id for the object to rez.</param>
|
||||||
/// <param name="RayEnd"></param>
|
/// <param name="RayEnd"></param>
|
||||||
/// <param name="RayStart"></param>
|
/// <param name="RayStart"></param>
|
||||||
/// <param name="RayTargetID"></param>
|
/// <param name="RayTargetID"></param>
|
||||||
|
@ -107,8 +114,16 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
/// <param name="fromTaskID"></param>
|
/// <param name="fromTaskID"></param>
|
||||||
/// <param name="attachment"></param>
|
/// <param name="attachment"></param>
|
||||||
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful.</returns>
|
/// <returns>The SceneObjectGroup rezzed or null if rez was unsuccessful.</returns>
|
||||||
|
|
||||||
|
SceneObjectGroup RezObject(IClientAPI remoteClient, InventoryItemBase item, UUID rezGroupID,
|
||||||
|
UUID assetID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment);
|
||||||
|
|
||||||
|
// compatibility do not use
|
||||||
SceneObjectGroup RezObject(
|
SceneObjectGroup RezObject(
|
||||||
IClientAPI remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd, Vector3 RayStart,
|
IClientAPI remoteClient, InventoryItemBase item,
|
||||||
|
UUID assetID, Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment);
|
bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment);
|
||||||
|
|
||||||
|
|
|
@ -2454,6 +2454,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="remoteClient"></param>
|
/// <param name="remoteClient"></param>
|
||||||
/// <param name="itemID"></param>
|
/// <param name="itemID"></param>
|
||||||
|
/// <param name="groupID"></param>
|
||||||
/// <param name="RayEnd"></param>
|
/// <param name="RayEnd"></param>
|
||||||
/// <param name="RayStart"></param>
|
/// <param name="RayStart"></param>
|
||||||
/// <param name="RayTargetID"></param>
|
/// <param name="RayTargetID"></param>
|
||||||
|
@ -2464,7 +2465,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="RezSelected"></param>
|
/// <param name="RezSelected"></param>
|
||||||
/// <param name="RemoveItem"></param>
|
/// <param name="RemoveItem"></param>
|
||||||
/// <param name="fromTaskID"></param>
|
/// <param name="fromTaskID"></param>
|
||||||
public virtual void RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart,
|
public virtual void RezObject(IClientAPI remoteClient, UUID itemID, UUID groupID,
|
||||||
|
Vector3 RayEnd, Vector3 RayStart,
|
||||||
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected, bool RemoveItem, UUID fromTaskID)
|
bool RezSelected, bool RemoveItem, UUID fromTaskID)
|
||||||
{
|
{
|
||||||
|
@ -2504,8 +2506,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
byte bRayEndIsIntersection = (byte)(RayEndIsIntersection ? 1 : 0);
|
byte bRayEndIsIntersection = (byte)(RayEndIsIntersection ? 1 : 0);
|
||||||
Vector3 scale = new Vector3(0.5f, 0.5f, 0.5f);
|
Vector3 scale = new Vector3(0.5f, 0.5f, 0.5f);
|
||||||
Vector3 pos
|
Vector3 pos = GetNewRezLocation(
|
||||||
= GetNewRezLocation(
|
|
||||||
RayStart, RayEnd, RayTargetID, Quaternion.Identity,
|
RayStart, RayEnd, RayTargetID, Quaternion.Identity,
|
||||||
BypassRayCast, bRayEndIsIntersection, true, scale, false);
|
BypassRayCast, bRayEndIsIntersection, true, scale, false);
|
||||||
|
|
||||||
|
|
|
@ -3116,13 +3116,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
CheckHeartbeat();
|
CheckHeartbeat();
|
||||||
|
|
||||||
|
|
||||||
sp = GetScenePresence(client.AgentId);
|
sp = GetScenePresence(client.AgentId);
|
||||||
|
|
||||||
// XXX: Not sure how good it is to add a new client if a scene presence already exists. Possibly this
|
|
||||||
// could occur if a viewer crashes and relogs before the old client is kicked out. But this could cause
|
|
||||||
// other problems, and possibly the code calling AddNewAgent() should ensure that no client is already
|
|
||||||
// connected.
|
|
||||||
if (sp == null)
|
if (sp == null)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
|
@ -3137,15 +3132,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags;
|
sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags;
|
||||||
|
|
||||||
/* done in completMovement
|
|
||||||
InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46);
|
|
||||||
if (cof == null)
|
|
||||||
sp.COF = UUID.Zero;
|
|
||||||
else
|
|
||||||
sp.COF = cof.ID;
|
|
||||||
|
|
||||||
m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF);
|
|
||||||
*/
|
|
||||||
m_eventManager.TriggerOnNewPresence(sp);
|
m_eventManager.TriggerOnNewPresence(sp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -171,7 +171,7 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
//Assert.That((retrievedItem1.CurrentPermissions & (uint)OpenMetaverse.PermissionMask.All) == (uint)OpenMetaverse.PermissionMask.All);
|
//Assert.That((retrievedItem1.CurrentPermissions & (uint)OpenMetaverse.PermissionMask.All) == (uint)OpenMetaverse.PermissionMask.All);
|
||||||
|
|
||||||
// Rez the object
|
// Rez the object
|
||||||
scene.RezObject(sp2.ControllingClient, retrievedItem1.ID, Vector3.Zero, Vector3.Zero, UUID.Zero, 0, false, false, false, UUID.Zero);
|
scene.RezObject(sp2.ControllingClient, retrievedItem1.ID, UUID.Zero, Vector3.Zero, Vector3.Zero, UUID.Zero, 0, false, false, false, UUID.Zero);
|
||||||
SceneObjectGroup sog = scene.GetSceneObjectGroup("SomeObject");
|
SceneObjectGroup sog = scene.GetSceneObjectGroup("SomeObject");
|
||||||
Assert.That(sog, Is.Not.Null);
|
Assert.That(sog, Is.Not.Null);
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,8 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||||
{ this.Stale = true; };
|
{ this.Stale = true; };
|
||||||
client.OnObjectPermissions += delegate(IClientAPI controller, UUID agentID, UUID sessionID,
|
client.OnObjectPermissions += delegate(IClientAPI controller, UUID agentID, UUID sessionID,
|
||||||
byte field, uint localId, uint mask, byte set) { this.Stale = true; };
|
byte field, uint localId, uint mask, byte set) { this.Stale = true; };
|
||||||
client.OnRezObject += delegate(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd,
|
client.OnRezObject += delegate(IClientAPI remoteClient, UUID itemID, UUID groupID,
|
||||||
|
Vector3 RayEnd,
|
||||||
Vector3 RayStart, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
Vector3 RayStart, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
|
||||||
bool RezSelected,
|
bool RezSelected,
|
||||||
bool RemoveItem, UUID fromTaskID) { this.Stale = true; };
|
bool RemoveItem, UUID fromTaskID) { this.Stale = true; };
|
||||||
|
|
Loading…
Reference in New Issue