minor cleanup of some dodgy bits
parent
ba9b317122
commit
a473289738
|
@ -199,7 +199,7 @@ namespace OpenSim.Framework
|
|||
{
|
||||
string console_result = "";
|
||||
string attribute = null;
|
||||
if (useFile || (!useFile && configurationFromXMLNode != null))
|
||||
if (useFile || configurationFromXMLNode != null)
|
||||
{
|
||||
if (!ignoreNextFromConfig)
|
||||
{
|
||||
|
|
|
@ -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,16 +413,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
if (item != null)
|
||||
{
|
||||
AssetBase rezAsset = AssetCache.GetAsset(item.assetID, false);
|
||||
if (rezAsset != null)
|
||||
|
||||
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
|
||||
// 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);
|
||||
|
@ -438,7 +430,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void AddRezObject(string xmlData, LLVector3 pos)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue