mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Update svn properties, minor formatting cleanup.
This commit is contained in:
@@ -154,18 +154,21 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
|
||||
part.SitTargetOrientation = new Quaternion(0,0,0,1);
|
||||
part.SitTargetPosition = new Vector3(0,0,0);
|
||||
|
||||
// Fix ownership/creator of inventory items
|
||||
// Not doing so results in inventory items
|
||||
// being no copy/no mod for everyone
|
||||
TaskInventoryDictionary inv = part.TaskInventory;
|
||||
foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv) {
|
||||
if (!resolveUserUuid(kvp.Value.OwnerID)) {
|
||||
kvp.Value.OwnerID = masterAvatarId;
|
||||
}
|
||||
if (!resolveUserUuid(kvp.Value.CreatorID)) {
|
||||
kvp.Value.CreatorID = masterAvatarId;
|
||||
}
|
||||
}
|
||||
// Fix ownership/creator of inventory items
|
||||
// Not doing so results in inventory items
|
||||
// being no copy/no mod for everyone
|
||||
TaskInventoryDictionary inv = part.TaskInventory;
|
||||
foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv)
|
||||
{
|
||||
if (!resolveUserUuid(kvp.Value.OwnerID))
|
||||
{
|
||||
kvp.Value.OwnerID = masterAvatarId;
|
||||
}
|
||||
if (!resolveUserUuid(kvp.Value.CreatorID))
|
||||
{
|
||||
kvp.Value.CreatorID = masterAvatarId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_scene.AddRestoredSceneObject(sceneObject, true, false))
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
Vector3 a = new Vector3(m_CameraAtAxis.X, m_CameraAtAxis.Y, 0);
|
||||
|
||||
if(a == Vector3.Zero)
|
||||
if (a == Vector3.Zero)
|
||||
return a;
|
||||
|
||||
return Util.GetNormalizedVector(a);
|
||||
|
||||
@@ -7366,7 +7366,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
// now send to all (non-child) agents
|
||||
List<ScenePresence> agents = World.GetAvatars();
|
||||
foreach(ScenePresence agent in agents)
|
||||
foreach (ScenePresence agent in agents)
|
||||
{
|
||||
agent.ControllingClient.SendParcelMediaUpdate(landData.MediaURL,
|
||||
landData.MediaID,
|
||||
@@ -7377,7 +7377,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
1); // TODO do some LOOP logic here
|
||||
}
|
||||
}
|
||||
else if(!presence.IsChildAgent)
|
||||
else if (!presence.IsChildAgent)
|
||||
{
|
||||
// we only send to one (root) agent
|
||||
presence.ControllingClient.SendParcelMediaUpdate(url,
|
||||
@@ -7397,14 +7397,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
// send to all (non-child) agents
|
||||
List<ScenePresence> agents = World.GetAvatars();
|
||||
foreach(ScenePresence agent in agents)
|
||||
foreach (ScenePresence agent in agents)
|
||||
{
|
||||
agent.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this?
|
||||
(ParcelMediaCommandEnum)commandToSend,
|
||||
time);
|
||||
}
|
||||
}
|
||||
else if(!presence.IsChildAgent)
|
||||
else if (!presence.IsChildAgent)
|
||||
{
|
||||
presence.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this?
|
||||
(ParcelMediaCommandEnum)commandToSend,
|
||||
|
||||
Reference in New Issue
Block a user