Merge branch 'master' into careminster
commit
acfe7e555e
|
@ -627,7 +627,6 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
foreach (String s in allKeys)
|
foreach (String s in allKeys)
|
||||||
{
|
{
|
||||||
string val = config.GetString(s);
|
|
||||||
SetOtherSetting(s, config.GetString(s));
|
SetOtherSetting(s, config.GetString(s));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1676,13 +1676,14 @@ namespace OpenSim.Framework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void PrintCallStack()
|
public static void PrintCallStack()
|
||||||
{
|
{
|
||||||
StackTrace stackTrace = new StackTrace(); // get call stack
|
StackTrace stackTrace = new StackTrace(true); // get call stack
|
||||||
StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames)
|
StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames)
|
||||||
|
|
||||||
// write call stack method names
|
// write call stack method names
|
||||||
foreach (StackFrame stackFrame in stackFrames)
|
foreach (StackFrame stackFrame in stackFrames)
|
||||||
{
|
{
|
||||||
m_log.Debug(stackFrame.GetMethod().DeclaringType + "." + stackFrame.GetMethod().Name); // write method name
|
MethodBase mb = stackFrame.GetMethod();
|
||||||
|
m_log.DebugFormat("{0}.{1}:{2}", mb.DeclaringType, mb.Name, stackFrame.GetFileLineNumber()); // write method name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7689,6 +7689,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
if (transfer.TransferInfo.SourceType == (int)SourceType.SimEstate)
|
||||||
|
{
|
||||||
|
//TransferRequestPacket does not include covenant uuid?
|
||||||
|
//get scene covenant uuid
|
||||||
|
taskID = m_scene.RegionInfo.RegionSettings.Covenant;
|
||||||
|
}
|
||||||
|
|
||||||
MakeAssetRequest(transfer, taskID);
|
MakeAssetRequest(transfer, taskID);
|
||||||
|
|
||||||
|
@ -12113,6 +12120,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
{
|
{
|
||||||
requestID = new UUID(transferRequest.TransferInfo.Params, 80);
|
requestID = new UUID(transferRequest.TransferInfo.Params, 80);
|
||||||
}
|
}
|
||||||
|
else if (transferRequest.TransferInfo.SourceType == (int)SourceType.SimEstate)
|
||||||
|
{
|
||||||
|
requestID = taskID;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// m_log.DebugFormat("[CLIENT]: {0} requesting asset {1}", Name, requestID);
|
// m_log.DebugFormat("[CLIENT]: {0} requesting asset {1}", Name, requestID);
|
||||||
|
|
||||||
|
|
|
@ -560,12 +560,20 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
userID = remoteClient.AgentId;
|
userID = remoteClient.AgentId;
|
||||||
|
|
||||||
|
// m_log.DebugFormat(
|
||||||
|
// "[INVENTORY ACCESS MODULE]: Target of {0} in CreateItemForObject() is {1} {2}",
|
||||||
|
// action, remoteClient.Name, userID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// All returns / deletes go to the object owner
|
// All returns / deletes go to the object owner
|
||||||
//
|
//
|
||||||
userID = so.RootPart.OwnerID;
|
userID = so.RootPart.OwnerID;
|
||||||
|
|
||||||
|
// m_log.DebugFormat(
|
||||||
|
// "[INVENTORY ACCESS MODULE]: Target of {0} in CreateItemForObject() is object owner {1}",
|
||||||
|
// action, userID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userID == UUID.Zero) // Can't proceed
|
if (userID == UUID.Zero) // Can't proceed
|
||||||
|
@ -651,11 +659,11 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override and put into where it came from, if it came
|
// Override and put into where it came from, if it came
|
||||||
// from anywhere in inventory
|
// from anywhere in inventory and the owner is taking it back.
|
||||||
//
|
//
|
||||||
if (action == DeRezAction.Take || action == DeRezAction.TakeCopy)
|
if (action == DeRezAction.Take || action == DeRezAction.TakeCopy)
|
||||||
{
|
{
|
||||||
if (so.RootPart.FromFolderID != UUID.Zero)
|
if (so.RootPart.FromFolderID != UUID.Zero && userID == remoteClient.AgentId)
|
||||||
{
|
{
|
||||||
InventoryFolderBase f = new InventoryFolderBase(so.RootPart.FromFolderID, userID);
|
InventoryFolderBase f = new InventoryFolderBase(so.RootPart.FromFolderID, userID);
|
||||||
if (f != null)
|
if (f != null)
|
||||||
|
|
|
@ -148,7 +148,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
x = m_inventoryDeletes.Dequeue();
|
x = m_inventoryDeletes.Dequeue();
|
||||||
|
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[ASYNC DELETER]: Sending object to user's inventory, action {1}, count {2}, {0} item(s) remaining.", left, x.action, x.objectGroups.Count);
|
"[ASYNC DELETER]: Sending object to user's inventory, action {1}, count {2}, {0} item(s) remaining.",
|
||||||
|
left, x.action, x.objectGroups.Count);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -450,17 +450,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||||
Vector3 toRegionPos;
|
Vector3 toRegionPos;
|
||||||
double dis;
|
double dis;
|
||||||
|
|
||||||
Action<ScenePresence> senseEntity = new Action<ScenePresence>(delegate(ScenePresence presence)
|
Action<ScenePresence> senseEntity = new Action<ScenePresence>(presence =>
|
||||||
{
|
{
|
||||||
if ((ts.type & NPC) == 0
|
if ((ts.type & NPC) == 0 && presence.PresenceType == PresenceType.Npc)
|
||||||
&& presence.PresenceType == PresenceType.Npc
|
{
|
||||||
&& !npcModule.GetNPC(presence.UUID, presence.Scene).SenseAsAgent)
|
INPC npcData = npcModule.GetNPC(presence.UUID, presence.Scene);
|
||||||
return;
|
if (npcData == null || !npcData.SenseAsAgent)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((ts.type & AGENT) == 0
|
if ((ts.type & AGENT) == 0)
|
||||||
&& (presence.PresenceType == PresenceType.User
|
{
|
||||||
|| npcModule.GetNPC(presence.UUID, presence.Scene).SenseAsAgent))
|
if (presence.PresenceType == PresenceType.User)
|
||||||
return;
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
INPC npcData = npcModule.GetNPC(presence.UUID, presence.Scene);
|
||||||
|
if (npcData != null && npcData.SenseAsAgent)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (presence.IsDeleted || presence.IsChildAgent || presence.GodLevel > 0.0)
|
if (presence.IsDeleted || presence.IsChildAgent || presence.GodLevel > 0.0)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue