minor cleanup of some dodgy bits

afrisby
Jeff Ames 2007-11-17 08:14:17 +00:00
parent ba9b317122
commit a473289738
3 changed files with 16 additions and 34 deletions

View File

@ -199,7 +199,7 @@ namespace OpenSim.Framework
{
string console_result = "";
string attribute = null;
if (useFile || (!useFile && configurationFromXMLNode != null))
if (useFile || configurationFromXMLNode != null)
{
if (!ignoreNextFromConfig)
{

View File

@ -283,6 +283,13 @@ namespace OpenSim.Region.Environment.Scenes
isTexture = true;
}
AssetBase rezAsset = AssetCache.GetAsset(item.assetID, isTexture);
if (rezAsset == null)
{
// lets try once more in case the asset cache is being slow getting the asset from server
rezAsset = AssetCache.GetAsset(item.assetID, isTexture);
}
if (rezAsset != null)
{
string script = Util.FieldToString(rezAsset.Data);
@ -290,18 +297,6 @@ namespace OpenSim.Region.Environment.Scenes
EventManager.TriggerRezScript(localID, copyID, script);
rezzed = true;
}
else
{
//lets try once more incase the asset cache is being slow getting the asset from server
rezAsset = AssetCache.GetAsset(item.assetID, isTexture);
if (rezAsset != null)
{
string script = Util.FieldToString(rezAsset.Data);
// Console.WriteLine("rez script " + script);
EventManager.TriggerRezScript(localID, copyID, script);
rezzed = true;
}
}
if (rezzed)
{
@ -418,23 +413,19 @@ namespace OpenSim.Region.Environment.Scenes
if (item != null)
{
AssetBase rezAsset = AssetCache.GetAsset(item.assetID, false);
if (rezAsset == null)
{
// lets try once more in case the asset cache is being slow getting the asset from server
rezAsset = AssetCache.GetAsset(item.assetID, false);
}
if (rezAsset != null)
{
AddRezObject(Util.FieldToString(rezAsset.Data), pos);
userInfo.DeleteItem(remoteClient.AgentId, item);
remoteClient.SendRemoveInventoryItem(itemID);
}
else
{
//lets try once more incase the asset cache is being slow getting the asset from server
rezAsset = AssetCache.GetAsset(item.assetID, false);
if (rezAsset != null)
{
AddRezObject(Util.FieldToString(rezAsset.Data), pos);
userInfo.DeleteItem(remoteClient.AgentId, item);
remoteClient.SendRemoveInventoryItem(itemID);
}
}
}
}
}

View File

@ -62,7 +62,6 @@ namespace OpenSim.Region.Environment.Scenes
public Int32 CreationDate;
public uint ParentID = 0;
public uint OwnerMask = FULL_MASK_PERMISSIONS;
public uint NextOwnerMask = FULL_MASK_PERMISSIONS;
public uint GroupMask = FULL_MASK_PERMISSIONS;
@ -913,7 +912,7 @@ namespace OpenSim.Region.Environment.Scenes
/// that's not wholesome. Had to make m_scene public
PhysActor = null;
if (!((ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) != 0))
if ((ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0)
{
PhysActor = m_parentGroup.m_scene.PhysScene.AddPrimShape(
Name,
@ -929,15 +928,7 @@ namespace OpenSim.Region.Environment.Scenes
PhysActor.OnOutOfBounds += PhysicsOutOfBounds;
}
}
}
}
public void UpdateExtraParam(ushort type, bool inUse, byte[] data)